VX SCRIPT QUESTION, PICTURE LAYERS?

Posts

Pages: 1
Does any remarkable VX scripter know how to make a picture appear over another? I've fiddled around in the code enough to get a picture to appear where I want it, but it appears under other pictures and I'd like to get it to appear on the very top.

Code shown here:

def create_menu_vines
@menuvines_sprite = Sprite.new
width = 160
height = 300
@menuvines_sprite.bitmap = Bitmap.new(width, height)
bitmap = Cache.system(SSS::MENU_VINES_IMAGE)
rect = Rect.new(0, 0, 133, 300)
y = 0
@menuvines_sprite.bitmap.blt(0, 52, bitmap, rect)
end

It appears under a picture created just before this one. If possible, I'd like it on top and also under the user's selection box. It's a decorative element, but the effect would be great. Thanks.
Versalia
must be all that rtp in your diet
1405
When you're using the Show Picture command, as opposed to script, the Picture Number is what controls which images are on top (which is why the one created right before it covers it up in most cases). Can you translate that into the script?
Not a bad idea, but doesn't seem to translate. I moved the picture creation code all over the place and it has no effect (still behind this other transparent image). I was hoping there'd be some depth property I could set to 1000 or something, like in Actionscript. Maybe there is and I just can't find it.
Sprites have a z value

aSprite.z = #
author=prexus
Sprites have a z value

aSprite.z = #

You, sir, are a scholar. And because you sport a monocle, I can only assume you are also a gentleman. Many thanks.
Actually I'm a wizard. Wizards always have monocles. Also, I am a gentleman of course. Gentlewizard, you might say.
Pages: 1