velocity movement question

skippertech

  • Posts: 256
Hey guys, I am tryung to simulate a movement youd see in league of legends or Runescape where your actor moves to the mouse press. To do this I take the atan2 of y:mouse press y - player y x: mouse press x - player x x180/2. I then set that as degrees. This works but the problem I am running into as the lovement can be weird... sometimes the actor curves to a point instead of a stright line, which as you can imagine would look weird I  rhe game. Does anyone know a fix to this? Is there another way of doing it? Thanks!

sdieters

  • Posts: 2068
use the slide to block, and only rotate the actor in that direction when he is moving.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

skippertech

  • Posts: 256
use the slide to block, and only rotate the actor in that direction when he is moving.
Thanks man! Appreciate it

skippertech

  • Posts: 256
use the slide to block, and only rotate the actor in that direction when he is moving.

my only problem is in the slide by block you have to set an "over seconds" value.. any ideas on how I could make that even..

sdieters

  • Posts: 2068
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p