Thanks in advance.
Oh yeah, CASH PRIZES
If anyone can help me get this going I will paypal them $5. Not much, but hey, more then you're getting in other threads
To find out the latest about our new website, visit Game Dev Unlimited
Posted 22 December 2011 - 10:20 PM
Posted 22 December 2011 - 11:51 PM
class Window_Item < Window_Selectable
# =========================
# Image Name Configuration
# =========================
BG_IMG = "filename" # Set to the name of picture, in pictures folder
alias :new_init_bg :initialize unless method_defined? :new_init_bg
def initialize
new_init_bg
if $game_temp.in_battle
@background_sprite = Sprite.new
@background_sprite.bitmap = RPG::Cache.picture(BG_IMG)
@background_sprite.x, @background_sprite.y = self.x, self.y
self.opacity = 0
end
end
# Just in case the window gets repositioned
# these methods will trigger the background image
# to move with it
def x=(x)
super
if @background_sprite
@background_sprite.x = x
end
end
def y=(y)
super
if @background_sprite
@background_sprite.y = y
end
end
# Dispose background when window is disposed
def dispose
super
if @background_sprite
@background_sprite.dispose
end
end
end
Posted 23 December 2011 - 07:46 AM
Posted 23 December 2011 - 02:46 PM
Posted 23 December 2011 - 10:03 PM
bigace, on 23 December 2011 - 07:46 AM, said:
members, guests, anonymous users