I'd like to make a character move on a Final Fantasy-like "wold map", but controlled by the mouse.
To do this, I use Bullet behavior, and when the mouse button is down, I enable the bullet behavior in the angle between the character and the mouse position to make it move toward the cursor. Works wonder.
My only problem is that I'd like my character to be stopped by background elements (trees, rocks, etc.) but I don't see an easy way to stop my bullet behavior when a collision is detected. There is a bounce off solids option, but it makes my object bounce (for some reason, even teleport away), and I just want it to stop, or rather, slide along the obstacle.
The weird thing is, a few hours ago, the thing behaved just how I wanted to, and despite having the same events and same behavior, now the character truly teleports away from obstacle when touching one. :-/
I just want it to slide smoothly along the obstacle like with the 8 directions behavior.
Any idea of how to fix it, or is there another way to achieve this without using the bullet behavior?