I'm using RGSS2 in XP, as per the tutorial on these boards.
I have a simple scene, with some windows in it, that's all. If I open and close the scene a few times, I get "Game.exe has encountered a problem and has had to close". It doesn't point me to any lines.
This is the script:
Thanks for your help...
Important edit:
This now happens in pretty much every menu in the game that uses windows. Is there something new to RGSS2 I have missed or something?
I have a simple scene, with some windows in it, that's all. If I open and close the scene a few times, I get "Game.exe has encountered a problem and has had to close". It doesn't point me to any lines.
This is the script:
Code:
class Scene_Stats
def main
@goldwin = Window_Gold.new
@goldwin.x = 400
@goldwin.y = 360
@spr = Sprite.new
@spr.bitmap = RPG::Cache.picture('hud')
@spr.z = 9999
@hud = Window_HUD.new
@spriteset = Spriteset_Map.new
@toolbar = Window_Toolbar.new
@stats = Window_MenuStatus.new
# Execute transition
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of windows
@stats.dispose
@spr.dispose
@spriteset.dispose
@toolbar.dispose
@hud.dispose
@goldwin.dispose
end
def update
@stats.update
@goldwin.update
@spriteset.update
if Input.trigger?(Input::B) or Input.trigger?(Input::C)
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
return
end
end
end
Thanks for your help...
Important edit:
This now happens in pretty much every menu in the game that uses windows. Is there something new to RGSS2 I have missed or something?