Ok so i have a prototype project, mostly to learn both Lua and Corona SDK.
Its a little Air Hokey style game:
Background (not movable just static)
then i will have a ball and a usr controlled puck and a cpu one.
Now i tried following the Follow ME Example but not having much success, so i wanna better understand how to assign control over the puck (user)?
here is my small code soo far
–test b
local backgroud = display.newImage( “BACK.png” )
local usr = display.newImage( “usr.png” )
usr.x = display.stageWidth / 2
usr.y = display.stageHeight - 50
function usr:touch( event )
end
usr:addEventListener( “touch”, usr )
function usr:touch( event )
end
usr:addEventListener( “touch”, usr )
Anyone can help me out? Usr is the player puck image that will be moved by the player. I have only added the back image and the usr untill i get this to work
Thank you in advance
[import]uid: 6061 topic_id: 816 reply_id: 300816[/import]