okay so i have this image in my game, I want it to trigger a function i have named “gameover()” whenever the image hits the bottom of the screen, how can i do this? i was thinking this would work but it didnt, any help? thanks!
local scroll = display.newImage( "scroll.png" )
scroll.x = 165
scroll.y = 230
localGroup:insert(scroll)
if (scroll.y \> 480) then
gameover()
end
[import]uid: 10827 topic_id: 6764 reply_id: 306764[/import]
