B
Beggar Studios
Guest
I am making an rpg in GameMaker Studio 2 and I have a problem with mp_potential_step. I am using it to have the player automatically dodge out of the way of falling debris, but I have weird behaviour when dodging to the left. When going to the right the player just goes in a straight line to the right, however when the player dodges left he goes up, left, down and then left again, as if the player is avoiding some invisible object to the left of the player. This is the simple code
I have the check_all parameter set to false so it only checks for solid objects to avoid, but I use custom collision checking so I don't have any solid objects in the room! What could be causing this behaviour?
Code:
mp_potential_step(x-30, player_y, spd, false);