Hi everyone.
I’m trying to get back into Corona following a hectic Christmas but I’ve hit a snag in handling sprite and touch events at the same time.
I have a skateboarder who needs to perform a grab trick when a button is pressed.
1,On initially pressing the button, he changes from his idle state and starts playing through the animation.
2,If the button is still held down when the skater actually grabs the board, he keeps holding it, (and the score counts up)
3,If the button is released then he plays through the rest of the animation.
I’m stuck on getting him to pause on a certain frame whilst the button is pressed, and listen for the button being released.
Can anyone direct me to a tutorial or post some simple pseudo-code so I know where I’m going wrong?
If you need sample code, I’ll post what I’ve got, but I’m stuck on how to organise functions and getting confused listening for touch and sprite events at the same time…
Thanks in advance.
Dan [import]uid: 67933 topic_id: 20230 reply_id: 320230[/import]
