In my app I have a stickman, which moves to right when you click a button. Within that time (moving to the right) I want to animate 6 pictures, where you see the stickman running. The purpose of clicking that button is to do it as fast as possible, and I want to let the stickman finish running even when the user clicks the button again. It’s a kind of a race to get at the finish as fast as possible. My purpose is to make the running of the stickman look natural, so the running doesn’t start again when the stickman is not yet ready with his steps.
Is there anyway to do this??
Thanks in advance,
Joe
That should be very straight forward, just define a (global) variable or a class property that like
statusthat you can set it torunningorstoppedand when the button is clicked checkif (status!=running)Does this solve your problem?
If you show us some code and point out the exact problem people could better help.