Add score when it hits an object

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?

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
corona forums © 2003-2011