Page 1 of 1

I need Script Editor help, PLEASE!!!

PostPosted: Sat Oct 20, 2007 6:51 pm
by Blaque Boi
As a noob, I've been trying to learn how to use GE from demo's and tutorials found here on the forums.
I downloaded a Demo called "Abuse2." and try to edit some script to use in my game. However, I don't understand how the script works. In my game, it doesn't work so well. I made six weapon sprites so I can animate them to follow the direction of the cursor. But It's very "Glitchy." Here's the script that I edited for my game.

Code: Select all
double mouseangle = direction(xscreen, yscreen, xmouse, ymouse);
animpos = (mouseangle/360)*(nframes);
if(Gun1.animindex == 0 || Gun1.animindex == 1) y = sin(frame/2.0) - 9;
else y = -14;


Someone, Please help!

Thank you and Regards,

Blaque Boi

Re: I need Script Editor help, PLEASE!!!

PostPosted: Sat Oct 20, 2007 11:28 pm
by Game A Gogo
if you could send the GED and DATA folder, I could help you =3
as there are some variables not declared in that script, I need to know how to interact whit them, thank you.