script problem... or glitch

Non-platform specific questions.

script problem... or glitch

Postby vbgeel » Sun Aug 22, 2010 9:02 pm

Im trying to make a character move, and i have the scripts, but whenever i try to move the character right he still moves left...

x=x-8;ChangeAnimation("Event Actor", "left", FORWARD);
x=x-8;ChangeAnimation("Event Actor" , "right",FORWARD); ---------- this one
y=y-8;ChangeAnimation("Event Actor", "up", FORWARD);
y=y+8;ChangeAnimation("Event Actor", "down", FORWARD);

i have made sure that the scripts are in the right place over and over again but the right one just never seems to work. is there anything wrong with it? or does anyone have another script like this i can use?
vbgeel
 
Posts: 3
Joined: Sun Aug 22, 2010 3:02 am
Score: 0 Give a positive score

Re: script problem... or glitch

Postby DST » Sun Aug 22, 2010 9:41 pm

x-8 is left. that's what you have there.
why don't you try x+8? that would be right.

human glitch.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest