How-to check the value of a dragged object to a target area?

Hi there,

I am new to Corona/Lua I want to write a simple times table game for my daughter but I don’t know how to write the code for checking when a value is dragged and dropped into a target area? For example if she had to work out what 3 x 3 was and she had a choice of values how would I check if the value she dragged and dropped into the target area was correct/incorrect?

I’ve seen tutorials on drag and drop etc but I couldn’t find anything on drag and drop from source to target?

[import]uid: 167310 topic_id: 31281 reply_id: 331281[/import]

Do you already have code that detects when one object was dragged into the other? That’s the difficult part and rather not go into it unless you really need it. Comparing the values of the two intersected object is the easy part(which is more so what your question is leaning towards) [import]uid: 147305 topic_id: 31281 reply_id: 125063[/import]

Do you already have code that detects when one object was dragged into the other? That’s the difficult part and rather not go into it unless you really need it. Comparing the values of the two intersected object is the easy part(which is more so what your question is leaning towards) [import]uid: 147305 topic_id: 31281 reply_id: 125063[/import]