Physics problem
I have my characters move based on a point and click system.
(Mouse selects character, mouse then selects another point on the map,character moves to that coordinate.)
But I do have a few obstacles in the way, and the problem is if the player selects a coordinate that along the way is blocked by an obstacle, the character hits the obstacle and starts moving to the left or right (very slowly and jittery)
Is there anyway that I can make the character stop when it hits a collision object?
Thanks
(Mouse selects character, mouse then selects another point on the map,character moves to that coordinate.)
But I do have a few obstacles in the way, and the problem is if the player selects a coordinate that along the way is blocked by an obstacle, the character hits the obstacle and starts moving to the left or right (very slowly and jittery)
Is there anyway that I can make the character stop when it hits a collision object?
Thanks
Comments
Try having a rule when the actor collides with the obstacle change attribute self motion linear x to 0 and self motion linear y to 0
Try a rule that only allows the player to move until he hits a block.
If canMove = true move to .... if overlaps or collides with block change attribute canMove to false.
Darren.