How do you flip sprites?
Root / Programming Questions / [.]
GuzzlerCreated:
You could use
SPDEF definition_number, U, V, Sprite_With, Sprite_Height, #SPREVH if you want the reversed the image used by the sprite
and
SPDEF definition_number, U, V, Sprite_With, Sprite_Height, 0 to define the image without horizontal reverse.
However, you need to do this each time you flip your sprite for each image used by it.
The other way is to define the normal and the flipped image on different definition number.
Edit: U,V are the coordinates (X,Y) where the sprite begin in GPR4:
*Sigh* Look at the complete description of SPCHR, your answer is in the value that goes at the end.
*Sigh* Look at the complete description of SPCHR, your answer is in the value that goes at the end.I didn't get to see your comment yesterday because I was in bed. Though, I'm not actually constantly flipping the sprites or anything. I just used it to make a title screen graphic. Thank you for your help though.