Making Game - need help with 2 functions

Hello corona, I’m making a game and taking it one step closer to become a full on game designer but theres functions I need to figure out.

One, how would I make an if statement saying if a ball as an image or something touches another image, then show win screen,

like

local function ballhoop (event)
if ball.png touches hoop then
show win screen
end
And 2nd question is how would I make a cannon that can shoot a ball? [import]uid: 122076 topic_id: 22067 reply_id: 322067[/import]

Hi Brandon -

This tutorial by Peach Pellen may help you out …

http://techority.com/2011/06/19/corona-for-newbies-part-4-physics/ [import]uid: 122802 topic_id: 22067 reply_id: 87683[/import]