Cannot tint screen during Game Over

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
For some reason, I cannot tint the screen when the game over event runs. The only thing happens is that the game freezes for 180 frames, and then go to the game over event. I don't understand why this happens. And no, Fiber.yield doesn't work at all. And I want to tint the screen in both in map and in the battle screen.

Here's the snippet:
Code:
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  def start
    super
  n = 180
  tone = Tone.new(204,-34,-34,200)
  $game_map.screen.start_tone_change(tone, 180)
  play_gameover_music
  Graphics.wait(n)                 
  fadeout_frozen_graphics
    create_background
    create_command_window
  end
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Where did you edit/make that method?
The gameover scene does not have a "screen" to tint, that is an entirely different scene, not connected to the map in any way.
So, if it is in the Scene_Gameover class, that will not work.

If it is somewhere else, it still won't work, the map screen change only works on the map scene.
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
Technically speaking, it was from a script that overwrote the Scene_Gameover. Is it possible to tint the screen before it switches over to the game over screen (before it fades out, to be exact.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
You could try to use a gameover common event script.
Since you are trying to change the map tone and not the battle tone, I guess, you need this for map death events, so you could try my script.
Here is the link:
Just tint the screen in the common event, and call the real gameover scene after that.

Wow, it directly shows pastebin code from links? O_O
This is awesome! *-*
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
Uh, @Hudell , I get an error on line 57 where it expect { .
Also, will this work in battles as well? Most of the time where the player gets a Game Over is in battles (exapmle: one mission requires protecting a party member can result in a Game Over).
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
Line 57 of what? o_O
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
Oh, sorry. Line 51 on your script. @Sixth
Also, I mentioned you by mistake, @Hudell . Really sorry.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
My script only works on the map, not in battles.
You could get Yanfly's Death Common Events script for battles if needed.

Line 51 of my script is the setting area, so I guess, you forgot to put a comma at the end or something similar.
Recheck your settings for typos, missing commas.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top