I need Script Editor help, PLEASE!!!

Talk about making games.

I need Script Editor help, PLEASE!!!

Postby Blaque Boi » Sat Oct 20, 2007 6:51 pm

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
Blaque Boi
 
Posts: 3
Joined: Fri Oct 19, 2007 2:06 pm
Location: HEX: 13D
Score: 0 Give a positive score

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

Postby Game A Gogo » Sat Oct 20, 2007 11:28 pm

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.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron