Hey, I need help with adding a score when you drag something into a box. I'm done with the dragging part, but I need help with adding the score. Can anyone help?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Add score when it hits an object
you might want to have a
local score = 0
on the top of your code, then after you have dragged *something* into a box, you can have
score = score + 1 -- or whatever you want to increase it by
from the information you have provided, that is the best I guess you can get.
cheers,
?:)
It would probably be like if the "ball" enters the box, you get a score. So I guess it would be like a collision?
And thanks for the info Jayant :)
views:1425 update:2011/10/19 14:58: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
相关文章
Chapayev by Kynitex - FREE for Android!
Cross-platform EventSound format?
Object AI problems.
The Impossible Test CHRISTMAS (free)
IOS and Android
looking to buy an android device
Device Builds Device Builds Device Builds
Submitting Universal Apps
any chance spriteloq could automate this?
director 1.4 causes simulator crash(?)
Cross-platform EventSound format?
Object AI problems.
The Impossible Test CHRISTMAS (free)
IOS and Android
looking to buy an android device
Device Builds Device Builds Device Builds
Submitting Universal Apps
any chance spriteloq could automate this?
director 1.4 causes simulator crash(?)
corona forums © 2003-2011