Im making a game with a ninja for the character. the ninja has different costumes for it to run. i want the ninja to cycle through those costumes when i press right and i want it to move right smoothly. does anyone have a great script for running?
Offline
This is what i have so far and its really choppy.
<when[ right arrow ]key pressed>
<point in direction( 90 degrees
<switch to costume[ sasuke running
<change x by( 10
Repeat the above with different costumes.
This isnt working very well. Help please!
Offline
Well, the first thing you might want to do is switch to the Sensing block for When Key pressed, that makes thing smoother.
[blocks]
<when green flag clicked>
<forever>
<if><key[ Right Arrow ]pressed?>
(do your motion stuff here)
<end>
<end>
[/blocks]
And put another IF block in for each key you are using to control (left arrow, up arrow, etc)
Last edited by Paddle2See (2008-04-09 14:24:00)
Offline