Hi.. I'm totally new, needed some help to complete my first game.
This game that I am making, imgur.com/1ZJaEWr
It's a easy drag and drop objects to the correct areas, (example Box1 is AppleBox, Box2 is OrangeBox), drag drop the Orange into the correct box.
Short Version:
There are scores, dropping to the correct box gives +5, and the wrong box -5, however, if you were to drop in between of both box, the score will be 0 (+5 and then -5).
What I wanted is, how do you choose the nearest object, like, if the Orange is nearest to the OrangeBox, drop in the OrangeBox instead of both (when it is in the middle, or somewhat touching both box)
What I'm doing/currently have
Orange on dragdrop drop and Orange is overlapping OrangeBox, System Add 5 to score
Orange on dragdrop drop and Orange is overlapping AppleBox, System Subtract 5 to score
More details:
When placed in the wrong box, the object will destroy and create another one at the "cart",
which putting in the middle, created one orange in the orangeBox, but have a score of 0, and the orange is re-created at the "cart" again, this is a huge problem for me. ):
(Maybe I shouldn't be using overlapping? or is there a choose to overlap the nearest box, or anything)
P.S. I am totally new, just started learning this software a few days ago.
If possible, would like to see an example, or a clear explanation of a solution/solution that work