2014년 12월 28일 일요일

Character moving steadily

In my game, I am using sprites as buttons so that I can put the sprites on top of my canvas. I am using the sprites to move a character to the right and to the left, and it works fine by just pressing the sprite, but I wanted to know if there was a way to have the character keep moving forward if I held the sprite.
 Thanks for any help!



in the sprite touchdown event set the speed of the character to a value > 0
in the sprite touchup event set the speed of the character to 0



Thanks! This answers my question pretty well.


댓글 없음:

댓글 쓰기