Drag and drop issue
alexxxhp
Member Posts: 161
If you have multiple object with a drag and drop how do you keep objects from being drags along when you pick one of them up for example I have 14 items on screen for drag and drop when I pick one up and I go over another by mistakes it picks that one up as well and mixes them up. I want one picked up but the other not to react until I select them and drag them even if I go over them.
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Leave it FALSE by default.
Only be able to pick up an object when isDragging is FALSE.
As soon as you pick up an object, set isDragging to TRUE.
As soon as you drop an object, set it back to FALSE.
Hope this helps!
Joe
http://gamesalad.com/game/play/30842
You could then have a global game attribute called "dropIsGood" or something like that.
Then in the actor, a rule that says:
When game.dropIsGood = FALSE
move to homeX, homeY
That's the basic Idea.