Hello, Ive been looking for a way to add more than one game over screen for my rpg maker vx ace game
I found a code snippet what allows me to add one extra game over screen
The problem I'm having is that I want to add at least 2 or 3 more screens and if I try to add another else brach or another if branch it doesnt' work
Note that I'm very new to coding so it surely is something I'm doing wrong
Can anyone tell me how I can add more game over screens and what I'm doing wrong?
Thank you
I found a code snippet what allows me to add one extra game over screen
class Scene_Gameover < Scene_Base
def create_background
@sprite = Sprite.new
if !$game_switches[55]
@sprite.bitmap = Cache.system("GameOver")
else
@sprite.bitmap = Cache.system("GameOver2")
end
end
end
def create_background
@sprite = Sprite.new
if !$game_switches[55]
@sprite.bitmap = Cache.system("GameOver")
else
@sprite.bitmap = Cache.system("GameOver2")
end
end
end
The problem I'm having is that I want to add at least 2 or 3 more screens and if I try to add another else brach or another if branch it doesnt' work
Note that I'm very new to coding so it surely is something I'm doing wrong
Can anyone tell me how I can add more game over screens and what I'm doing wrong?
Thank you