[Resolved] Gameover Screen Changer

Started by ShadowSaber, January 21, 2011, 04:41:53 am

Previous topic - Next topic

ShadowSaber

January 21, 2011, 04:41:53 am Last Edit: January 22, 2011, 03:59:41 am by ShadowSaber
Hi everyone

could someone make a gameover screen changer?
example :
I want to use gameover1.png at dungeon 1 and gameover2.png at dungeon 2, etc

ForeverZer0

Quote from: ShadowSaber on January 21, 2011, 04:41:53 am
Hi everyone

could someone make a gameover screen changer?
example :
I want to use gameover1.png at dungeon 1 and gameover2.png at dungeon 2, etc


Is there an event for changing the gameover graphic?
I can't remember off the top of my head.

If there is, simply have an event run when the player enters each area to change the graphic. This really doesn't need a script at all. At most it would be a single line script call.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

nathmatt

just put this in a script call
$data_system.gameover_name = 'new name'

so for your example it would be
$data_system.gameover_name = 'gameover1'
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


ShadowSaber

@^    I know that, but it will change to default if player exit the game

----edit : ah, I think I can solve that

----edit 2 : and do you know how to change gameover sound too?

ForeverZer0

You have to create an instance of an audio file, like this:


$data_system.gameover_me =  RPG::AudioFile.new("ME_FILENAME", VOLUME, PITCH)


Replace the values in all-caps with actual values.
ME_FILENAME = name of the file to play, must be in " " and in the Audio/ME directory
VOLUME = Integer between 0-100
PITCH = Integer between 50-150
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

ShadowSaber

thanks a lot, foreverzer0  :D
you're a livesaver  :haha: