ForumsProgramming ForumCharacter movement

16 6379
harveygames
offline
harveygames
10 posts
Nomad

Well im making my own game just to see if I am capable to do this.
Anyways, i have created a stick man and put it in a movie clip where he can run
and i used action script... very basic

which can make him move left or right and even up.... The thing is he can run out and when i stop he doesnt stop... He runs on the spot...

So i made another movie clip... This time hes still... and I made my running person on a different frame... But its just like hes stopped but moving side to side...
heres that code


I want i can recall animations on different frames so he can jump, kick, punch, stop, and run... Can someone help me???

<br>onClipEvent (load) {<br>	speed = 10;<br>}<br>onClipEvent (enterFrame) {<br>	if (Key.isDown(Key.RIGHT)) {<br>		_x += speed;<br>	}<br>	if (Key.isDown(Key.LEFT)) {<br>		_x -= speed;<br>	}<br>	if (Key.isDown(Key.SPACE)) {<br>		_y -= speed;<br>	}<br>}<br>
  • 16 Replies
Voidcrystal
offline
Voidcrystal
138 posts
Nomad

that is what i say ab.. always ^^

Showing 16-16 of 16