Hello,
I have an app where I need to show the images from an image sheet. I have a character than is going to be running in one position on the screen and scroll the background for the running effect. I have looked at the docs for the sprite animation but I need to see the best way to do this.
I want the character to run only when i tap the screen with my fingers. The faster I tap the faster the character runs. So because the sprite animation uses a set time and intervals I doubt I can use that. Should I instead just do a removeSelf on the image and then replace it with the next frame from the image sheet? And since I need to change the speed based on the tapping I assume I can just do this based on the tapping count.
I need to see how to do the tapping count. Because I want the user to tap anywhere on the screen maybe I should use a transparent image over everything and add a tap event listener?
Thanks,
Warren