Drag, move, Collide problem
hey guys i have a problem i am using "Advance snap to grid" demo, but i cant find i way to collide with other actors when i am dragging.
any help will be appreciated
any help will be appreciated
Best Answer
-
carlblanchet Posts: 755
Tshirtbooth has made a nice demo that you can download here (under the video in the description) that might help you:
http://gshelper.com/constrain-to-mouse-and-keep-collision-gamesalad/
Hope this helps!
-TGC-
Answers
Hi @jimthedude
It's an unfortunate fact that there is no collision detection by an actor that is being dragged in GSC.
I found a workaround a while back which involved only having the actor dragged when a boolean was true, and having when colliding this actor with another actor, changing the boolean to false. But then you have to make sure the actor bounces away so its not touching, to change the boolean back to true again. Not the best of results.
I'm sure I read of another workaround that was better than this by another member at some time but can't remember how it went, sorry; hopefully someone will post a good workaround for you.