The following code works, but only if the player is moving up or down (in this BEU case X- and X+). But not if the player is moving forward and UP or backward and UP.
Hopefully someone out there can show me what to add here so that it can also be achieved while moving left UP or right UP.
Right now, this behavior is like on the TMNT arcade game by Konami, the player must be constantly holding up else it snapped back in place instantly, whereas with Golden Axe by Sega for example, the player stayed in that 45 degree UP state unless the player attacked or moved left or right or down. And speaking of that…this 45 degree angle thing also has a caveat, before the player attacks and maybe even jumps, the player’s capsule will have to be snapped back to -90 or 90 degrees to achieve the classic beat em up left and right attacking.