Limit Drag to Zone
I`m testing one actor with movement based on draged by mouse position.
What could be the best way to constrain the movement on determinate zone?
If mouseposition > 230 Then undrag actor?
Its work, but i want to stop the mouse too, not only the actor.
What could be the best way to constrain the movement on determinate zone?
If mouseposition > 230 Then undrag actor?
Its work, but i want to stop the mouse too, not only the actor.
Comments
There are videos for constraining dragged actors, but I can't find one at the moment. See this: http://forums.gamesalad.com/discussion/14710/setting-min-and-max.