problem flipping sprites

Blitz3D Forums/Blitz3D Programming/problem flipping sprites

cyberyoyo(Posted 2005) [#1]
I am making a game based on sprites.
I have set them double sided (entityFx sprite,16) so that I can flip them for symmetry (instead of using 2 different textures). For example I draw a sprite for a movement to the left and I flip the sprite (with rotateEntity x,0,180,0) for the movement to the right.
The problem I noticed is that when the sprite is reversed , only half of it is drawn. I noticed that if I rotate it at 180° or more it display the right half and if I rotate it less than 180° it displays the left part.
Anybody knows why that happens? Any idea how to solve it?


cyberyoyo(Posted 2005) [#2]
I found that scaleEntity (-1,1,1) works and is logically the proper way to do it...
Thanks me.


big10p(Posted 2005) [#3]
Remember, sprites have their own scale command for some reason - ScaleSprite. Not sure why, really - it's probably just a wrapper that calls ScaleEntity anyway. :)