OK, let’s say I have a draggable rectangle and I want the player to complete a level if that rectangle is moved in front of a goal - which is another rectangle but just slightly larger.
How do I check if the rectangle object has been moved to the correct location - i.e. in front of the goal?
It also doesn’t have to be perfectly aligned, I want there to be a slight tolerance - about 10% or something.
I’ve been playing around and trying to get this working for longer than I want to admit so I’d be very thankful to anyone who can help out with ideas and/or sample code.
Thanks in advance all [import]uid: 74503 topic_id: 14199 reply_id: 314199[/import]