View Full Version: flipping images and priority control

Blitz Basement > General Newbie Discussions > flipping images and priority control


Title: flipping images and priority control


Angelica - January 17, 2006 03:35 PM (GMT)
Hi guys/gals,

I'm a newbie in Blitz world and I have 2 questions about 2D images in Blitz 3D:

1) How does one flip an image (mirror it) so one doesn't have to draw the sprite twice facing both left and right?

2) How does one control the priorities of images? For example, an image of a man is shown behind the image of a female. Now, I want to have the image of the man appear in front of the woman. Any ideas how?


Thanks!! :)

kurtp2003 - January 19, 2006 11:27 PM (GMT)
Hello. I am not the best programmer out there, I am completely self taugh, which puts me at a huge disadvantage. Anyway, I think I can help you with the second part of that.

When you want one image to be on top of another, simply put the "drawimage" command for that specific image after the one you want it to be on top of. Blitz draws images in the order that it is told to in the code.

As for the other problem, you should try opening up your sprite in paint. I'm pretty sure there's a funtion that will mirror it for you. Once you do that, you have two options. The first one is to save them as an animation strip, which will save time, but if you don't know how to do that, then you should just save the new image to a new location with a new name, and load it seperately.

Hope this is what you wanted.




Hosted for free by InvisionFree