left an right?

Non-platform specific questions.

left an right?

Postby LUFFY » Thu Jun 29, 2006 2:39 pm

o.k i have two mario sprites one facing left and on facing right how do i make it that when i press left he runs left and vise versa?

any help will be apprecated! 8)
LUFFY
 
Posts: 10
Joined: Wed Apr 05, 2006 12:04 am
Score: 0 Give a positive score

Postby The achievement » Thu Jun 29, 2006 3:57 pm

First add the two animations to the mario actor. left and right.

Then, right click on the mario actor, then go to. key down, press left.

then go to change animation. and then choose the left animation. then, go to script editor and type in x = x - 5;


Do the same exact thing for moving right. scriot x = x + 5; change animation to right.
I am the only Zombie Genocider.
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest