this is the question... i've to make appear a window and an immage in the game map when a variable calle $juke is true... i've tried like this in the def main of the class scene_map
but it doesn't work
i've also put an update and a dispose, when i've found the other one... but i don't see any sprite or window when i do like that :\ could you help me pls? ^^
EDIT: i've forgot this other script XD Window_JukeBox
i don't know... but maybe it could come in hand
Code:
if $juke == true
# Sfondo Lettore MP3
@jukeback = Sprite.new
@jukeback.bitmap = RPG::Cache.windowskin("006-JukeBox.PNG")
@jukeback.x = 30
@jukeback.y = 30
# Window dati brano suonato
@jukebox_window = Window_JukeBox.new
@jukebox_window.opacity = 0
@jukebox_window.x = 30
@jukebox_window.y = 10
end
i've also put an update and a dispose, when i've found the other one... but i don't see any sprite or window when i do like that :\ could you help me pls? ^^
EDIT: i've forgot this other script XD Window_JukeBox
Code:
class Window_JukeBox < Window_Base
def initialize
super(320, 0, 320, 64)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
if $song_name != nil
self.contents.font.color = text_color(10)
self.contents.draw_text(0, 0, self.width - 40, 32, $song_name, 1)
else
self.contents.draw_text(0, 0, self.width - 40, 32, "...", 1)
end
end
end