I’m trying to get a player character to move horizontally, and change direction when it hits a platform. I’ve added PlatformerObject behaviour to it, so I can utilise the jump control.
However, when the player hits a platform, it starts to flip the sprite very rapidly, and it moves very slowly in the opposite direction to what it was going. If I press the jump button, it breaks the fast image flipping behaviour.
Any idea on how to make the player object turn round and move in the opposite direction to what it was going? My current ‘code’ is: