Dr_Nomz
Member
So I have this run code:
And the bottom code would go in just after "i=run_speed" and it would follow the player character every time they move.
However, using this method instead of "follow object in room view" makes the character seemingly jerk around whenever they move, like the camera's lagging behind. :/
So any idea how I can fix it so it's just as smooth as using the default room view? (bare in mind it HAS to move with the player, since I also have a cursor code that shifts the camera around.)
Code:
if keyboard_check(ord("W")) { var i=run_speed; while !place_free(x,y-i) i--; y-=i; }
if keyboard_check(ord("S")) { var i=run_speed; while !place_free(x,y+i) i--; y+=i; }
if keyboard_check(ord("A")) { var i=run_speed; while !place_free(x-i,y) i--; x-=i; }
if keyboard_check(ord("D")) { var i=run_speed; while !place_free(x+i,y) i--; x+=i; }
if place_free(x+i,y) view_xview+=run_speed;
However, using this method instead of "follow object in room view" makes the character seemingly jerk around whenever they move, like the camera's lagging behind. :/
So any idea how I can fix it so it's just as smooth as using the default room view? (bare in mind it HAS to move with the player, since I also have a cursor code that shifts the camera around.)