Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Making menus vanish and show instantly

I need a little help, i what would i go about changing to making the menu transitions apear and vanish instantly?
I changed the transition to 10, but then i got this odd pausing that would get longer and longer every time i would bring the menu up.

What is Graphics.freeze for?
Would that have something to do with it?
I figure you have to do more then simply change the transitions for menus.
 

khmp

Sponsor

Graphics.freeze is used as a precursor to another Graphics.transition. You can't have just one and you can't take both out.

transition
freeze
transition
freeze
etc etc

The lag is most likely a result of resources being released after you've tried to reacquire them. A trick would be creating a Spriteset_Map object in Scene_Menu which will mimic the map's current standing before you came into Scene_Menu.
 
I just tested this out in a new project.
On line 17 of Scene_Map, and line 58 of Scene_Menu, change the line to:

Graphics.transition(0)

It worked fine.  By the way, the default transition is 8 frames, so if you set it to 10, you
made it a bit longer.

If you have SDK, you'll have to dig through it because it rewrites those scenes.
 
Hmmmm, no im not using SDK.
Um, the default transition time is 20 not 8.. and i brought it down to 10, and i even tried to make it faster then that, but it would do weird things, either the menu would come up slower and slower each time or id freez up right in the middle of walking around and it would stay like that for a bit.
It is weird.
 
From the manual...

Graphics.transition([duration[, filename[, vague]]])
Carries out a transition from the screen fixed in Graphics.freeze to the current screen.

duration is the number of frames the transition will last. When omitted, this value is set to 8.


You didn't think I would just make it up, did you?  :scruff:

did you try setting them to '0'?
 
yes, i tried making it 0, and no i do not think your making it up, but what manual are you talking about, im talking about the way it is set up before being modified.. it is 20 before you change it.
The smaller the number the more i have this problem where things will freeze up out of nowhere, if i set it back to 20 i wont get this problem with freezing up out of nowhere.
 

khmp

Sponsor

My thought is that you're computer is too slow to handle. That being said I'm out of ideas why it would do this. Would you be willing to create a demo so we can help troubleshoot this? You can use mediafire, filefront, megaupload etc. Feel free to PM me with the link if you are worried about privacy.
 
Lol, it has nothing to do with my PC, my PC is higher then the required system needed to run it.
It is a error in my scripting, thats all i can figure out.
Im going to have to start from scratch with my scripts and see if it does the same thing.

I may have to try this in a new game and see if it does the same thing.
-EDIT-
I was right, im having to start over to remove the bug.
But now i have to figure everything i did out again, like removing the back window for the battle status and more.. gahhh!! lol
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top