On the left side of the screen I have an area for weapons (bombs) in which there are piles of the different types of bombs. Each type of bomb has a limited supply (say 10). When the user is playing they drag a bomb on to the arena and let go, at which point there's a three second timer before the bomb explodes.
What I'm stuck with is how to implement this. I know that I'll need a table for each type of bomb, but what I can't seem to fathom is the event listener stuff. I know it's all fairly basic stuff but I just can't seem to get my head around it at the moment.
Any help at all would be very greatly appreciated.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
A question about dragging
Look at the DragMeMultitouch and Air Hockey 2 sample code to see how this is done. There were a couple of threads on this recently, so search the Forums for help.
-David
views:1796 update:2011/11/10 9:30:09
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
corona forums © 2003-2011