Touch

Hello,

How would we make it so wherever the user touches on the screen, the ball’s speed rises. How do i do this ?

Thank you.

*EDIT: Moved to “New Users Start Here” - please do not post non-OT threads in OT. [import]uid: 23689 topic_id: 11122 reply_id: 311122[/import]

[lua]function speedup(e)
–change speed attribute here
end
background:addEventListener(“touch”, speedup)[/lua]

This is of course assuming your background is called “background” :slight_smile:

Peach [import]uid: 52491 topic_id: 11122 reply_id: 40393[/import]