• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Changing Sprites

S

Sion Grenet

Guest
I'm making a simple gravity-shifting 'auto-scroll' platformer (view follows a camera object not a player, player dies if out of view).

When I shift gravity so that I am walkng on the ceiling, the standing sprite of the player is inverted (up-side down) - but, the walking sprite remains the right way up as I have set it to change sprite when the right key is pressed. How can i make it so that when I press the right key when walking on the ceiling, it changes the sprite to the inverted walking sprite instead?

(The gravity shift is triggered by pressing two seperate buttons - one for going up-side down, and the other to go back to normal gravity)

Any help is much appreciated!
 

obscene

Member
Seems like if you have gravity set you should be able to multiple all image_yscales by -1. (Or image_angles by 180)
 
Top