How to have an actor snap to multiple actors or x/y positions?
I've been racking my brain and I can't seem to figure out the logic to this complex drag and drop problem I've been designing. Let's say I have N draggable items that start at a particular x/y location on the scene. Each of the draggable items can snap into any N targets on the scene if they are within let's say within 50pixels, otherwise snapback to original position.
Any suggestions on how to solve this? I've studied all the videos on drag and drop...but all focus on drag 1 actor to 1 specific target. In my case each actor needs to be able to snap to multiple targets and otherwise snap back to starting position.
Thanks!
Any suggestions on how to solve this? I've studied all the videos on drag and drop...but all focus on drag 1 actor to 1 specific target. In my case each actor needs to be able to snap to multiple targets and otherwise snap back to starting position.
Thanks!
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang yes the snap to grid didn't work for me.
Thanks guys! I really appreciated it.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User