Stop Movement On Trigger
Hey,
So l have a player snapped to a grid who can move up,left,right and down by dragging the mouse in that direction. When he hits into a wall he goes floating away. So is there a way you can check if the player is on a certain gameobject, just before hitting into the wall, and then disable all controls except the mouse drag for going backwards. Thanks in advance.
Answer by ComradeVanti · Mar 31, 2016 at 03:15 PM
So I guess that you are moving your player with a rigidbody. If so I would suggest making it kinematic OnTriggerEnter and setting its velocity to Vector2.zero or something like that. :)
Your answer
Follow this Question
Related Questions
How to make my moving object (in game) stop once it collides 1 Answer
Disable player movement for some seconds? 0 Answers
Player stop while change colliding platform 0 Answers
Adding time to game clock when item picked up? 0 Answers
How to stop a countdown timer and disable/stop everything in the scene? 1 Answer