Flip The Sprite
Blitz3D Forums/Blitz3D Programming/Flip The Sprite
| ||
how could i flip a sprite horizontally? and no, scalesprite sprite,-1,1 doesnt work, because apparently sprites arent double sided. the sprite view mode is 2 |
| ||
EntityFx sprite,16 This disables backface culling. |
| ||
still doesnt work |
| ||
i think sprites can be fliped with rotateentity cant they? |
| ||
Instead of scaling the sprite scale the texture being applied to the sprite. In other words LoadTexture, ScaleTexture -1, and apply that texture to the sprite. |
| ||
After 1 day using sprites, I switched to quad meshes instead, to get full control... and I've never looked back. So I'm not sure what your problem is; all I know that if you use quad meshes instead, there isn't one. |
| ||
So, Anthony, you're saying to create a flat mesh by vertex coordinates and texture it and such instead of using Sprite functions? Isn't a mesh only textured on one side as well, though? (If you were "inside" an object, you wouldn't see it at all, would you?) Or maybe just explain to me quad meshes. :) |
| ||
Isn't a mesh only textured on one side as well, though? If you use EntityFx sprite,16 this disables backface culling. Looking at the back of the flat mesh shows the texture flipped.EvilMeowChi, Have you tried ScaleTexture spritestexture,-1,1 to flipX the sprites texture? |
| ||
*slaps head* Yeah, I can't remember more than three posts back in any given thread. :P Hmm, this looks attractive to me. I had already been somewhat concerned about the seeming limitations of sprites, and I've only used them for about 20 minutes! *lol* Doubly attractive because Anthony recommends it, and 2D in 3D is *what he does*. |