Hi there everyone,
I'm looking for a way to control the player's movement diagonally on certain parts of the map. By default, I have 8-direction movement turned OFF because I find it causes extra work when creating parallax maps. However, in areas where the player has to gain laterial elevation, I'm looking for some kind of "staircase effect" that wouldn't be amiss in old SNES RPGs, where the player moves diagonally in the direction of the staircase.
Ideally, I would want the player to hold the horizontal directional button to get onto the staircase - let's say in this example it's left - and instead of the player moving left, they move UPPER LEFT until the end of the staircase.
As I'm typing this I'm starting to wonder if the easiest way of doing this would be some kind of button check on events, where if left is TRUE then it causes the player to move upper left?
I'm looking for a way to control the player's movement diagonally on certain parts of the map. By default, I have 8-direction movement turned OFF because I find it causes extra work when creating parallax maps. However, in areas where the player has to gain laterial elevation, I'm looking for some kind of "staircase effect" that wouldn't be amiss in old SNES RPGs, where the player moves diagonally in the direction of the staircase.
Ideally, I would want the player to hold the horizontal directional button to get onto the staircase - let's say in this example it's left - and instead of the player moving left, they move UPPER LEFT until the end of the staircase.
As I'm typing this I'm starting to wonder if the easiest way of doing this would be some kind of button check on events, where if left is TRUE then it causes the player to move upper left?