Hey guys!
Me again! haha.
Well, I have this idea for another game. My first game was an infinite runner, and I like the idea of simple controls. However, the infinite runner was a bit too simple, so I want to make a single-screen platformer.
However, I want the running to be automatic. All I want the player to be able to do is jump and (crucially) change the direction in which the player sprite is running (left or right).
I can start the layout with the player sprite running left, and have a button that switches that to right, no problem. However, I need to use the same button to make it go left again.
Basically, I need a button that alternates between running directions (left and right). I think I need something like "if sprite is running left, then go right. if sprite is running right, go left" or some such thing but I can't seem to figure out how to do it.
Any ideas, guys? No capx as this is very barebones and that's about as far as I got. If I can't get the thing to run so no point, right? It should be just a single event, though, if I'm right?
Let me know, please!
And thank you for your support through my game creating journey <3