WINDOW BG IMAGES IN RMXP

Posts

Pages: 1
Hello,

I'm trying to make a set bg image appear for certain windows in RMXP but I am having trouble doing so. Say the scenario is this:

Create a 336x480 bg image on Window_Target (The window that appears when using a skill in the default setup).

I would be incredibly grateful if someone could show me how it's done.
WIP
I'm not comfortable with any idea that can't be expressed in the form of men's jewelry
11363
Hm. I don't have RMXP, but I'll yell at prexus if I see him later to check this out.
Thanks I appreciate it. Little by little i am filtering out xp's annoying little inhibiting factors.
C'mon (bump) I know there are some shameless RMXP experts knocking about this site. Lend a guy a hand :)
I think you need 2 windowskins. 1 with the image, and 1 without, then use the change windowskin command when appropriate.

If that's not the answer, then I can't help.
If you just want an image to show up, the best way is just to create a sprite object.

Find this code (from Scene_Item but basically the same)
@target_window.x = (@item_window.index + 1) % 2 * 304
@target_window.visible = true
@target_window.active = true

and add this before it:
@target_background = Sprite.new
@target_background.bitmap = RPG::Cache.picture('FILENAME') # CHANGE FILENAME
@target_background.x = (@item_window.index + 1) % 2 * 304

and this after it:
@target_window.opacity = 0

You'll also need to put a
@target_background.update if @target_background
in def update
and a
@target_background.dispose if @target_background
after this:
# Erase target window
@item_window.active = true
@target_window.visible = false
@target_window.active = false


It works but I can still see the text from the previous layer through it? ???
Er, do something like @target_background.z = @skill_window.z + 10
then @target_window.z = @target_background.z + 10
Prexus you're awesome have a good Christmas man :)
Pages: 1