• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[HELP NEEDED!] Custom Pause Menu

UltimateDillon

Veteran Gamer (Sort Of)
87
Posts
11
Years
Pause Menu (New Problem!)

I am in need of help with changing the default pause menu into something like the image below with the buttons extending and changing when highlighted.

bM2Ufwa.png


The internet will not provide my answer, and I have seen it in many times in games showcased here therefore thought I may ask.

I do not need someone to do it for me but would like to be pointed in the right direction so I can find out how to do it. If this post is in the wrong place, please could a moderator or admin move it to somewhere appropriate. Thanks in advance.
 
Last edited:

Maruno

Lead Dev of Pokémon Essentials
5,285
Posts
16
Years
The script section PokemonPauseMenu is what you want to look at. At the moment, the only things shown are a Window_CommandPokemon (the menu), a Window_UnformattedTextPokemon (Safari/Bug Contest info) and an unused Window_UnformattedTextPokemon. Figure out how they're defined and how they're made visible/invisible, and you're halfway there.

You'll want to show some graphics there as well. The Pokégear does that too, you know, so have a look at it for inspiration.
 

UltimateDillon

Veteran Gamer (Sort Of)
87
Posts
11
Years
The script section PokemonPauseMenu is what you want to look at. At the moment, the only things shown are a Window_CommandPokemon (the menu), a Window_UnformattedTextPokemon (Safari/Bug Contest info) and an unused Window_UnformattedTextPokemon. Figure out how they're defined and how they're made visible/invisible, and you're halfway there.

You'll want to show some graphics there as well. The Pokégear does that too, you know, so have a look at it for inspiration.

Thanks, I'll check there tomorrow. I was already looking at PokemonPauseMenu but had no idea what to look for as my RGSS skills are pretty basic so far. Thanks for showing me where I should be looking.
 
Last edited:

Harvey_Create

Pokemon Apex Team Member
187
Posts
11
Years
  • Age 27
  • Iowa
  • Seen Jul 12, 2015
Help for a pause menu


Okay, lets get one thing straight. I have never touched RGSS Programming. So i dont know what i am doing. A friend and I are trying to change the default pause menu to a more slick looking one.
Here it is. this is a photoshopped version of what the basic idea is.
24gso3k.png


I know that the script PokemonPauseMenu is what we need to edit, but my question is, what would i edit? and how would i set up the buttons and stuff?

I am sorry for the bugging you guys.
See, i am just the mapper, but if i get this done for him, he would be happy.
 

UltimateDillon

Veteran Gamer (Sort Of)
87
Posts
11
Years
So far, I can't make sense of it. The only significant things I have figured out in PokemonPauseMenu are 'cmdwindow' and 'infowindow'. I do have knowledge of programming and can learn very easily but I can't make sense of this myself. If anyone can help me understand it better, that would be great help.
 

Maruno

Lead Dev of Pokémon Essentials
5,285
Posts
16
Years
Code:
@sprites["cmdwindow"]=Window_CommandPokemon.new([])
This line creates the list of options for you to choose from. When it's first created, its command list is set to [], i.e. no commands. That's okay, because it's very quickly given commands further down - it's obvious to see where the available commands are decided.

Your pause menu is going to consist of two main features. The first is the background, which is in a set position and doesn't change. The second feature is a set of buttons, one per command, which can vary in content/function and will change graphics and/or locations depending on which command is currently selected.

The background is easy. Many places display the background image with code like the following, and this would be no different.

Code:
@sprites["background"] = IconSprite.new(0,0)
@sprites["background"].setBitmap("Graphics/Pictures/[COLOR=Red]pokegearbg[/COLOR]")
Pop that in the same place as the first line of code I quoted above, and see what happens. You should change the filename, obviously.

The buttons are a bit more difficult. You need some amount of them (one per command), which means you need to know what commands you've got first. There are a few ways to deal with this, but the simplest way is to copy something that already does what you want. What works like this? The Pokégear. Conveniently, it's also one of the simplest scripts in Essentials.

For starters, just try copying how the Pokégear works. You may even want to start with an exact copy of the Pokégear scripts (renamed, of course) and make changes to so that it works like a pause menu.

This is as much help as I can provide without simply doing it for you, and I'm not going to do that. You know about programming, you're bound to figure out what's going on. At least, start by figuring out how the Pokégear works, and seeing what you can change about it.
 

UltimateDillon

Veteran Gamer (Sort Of)
87
Posts
11
Years
Custom Pause Menu Problem!

I'm in need of some help. I am scripting a custom pause menu and i got pretty far in terms of cosmetics but ran into a few major problems. Here it is so far:

5AYs1fK.png



At this screen, I can't change selection, and instead when I use the arrow keys, it moves my player but the effect doesn't show until I press 'X' again, where the player teleports to where you moved him to with the arrows. Also, as you can see, the buttons are placed incorrectly and changing the 'y' coordinate only increases/decreases the spacing between the buttons.

This screen only works when the Pokégear script is identical to the pause menu script. When the Pokégear script is default, it looks like this, but has the same problem.

JasY4y7.png



I scripted it by editing the Pokégear script directly and it works to an extent that way, replacing the Pokégear with the pause menu. However, selecting any of the options naturally crashes the game. If anyone can help, or at least clean up the script so I can understand it easier, that would be amazing...

I will attach both the Pause Menu script, and the Pokégear script (Modified and Original of each), and the modified Scene_Map script. Thanks a lot in advance!
 
Last edited:

Rayquaza.

Lead Dev in Pokémon Order and Chaos
702
Posts
12
Years
By the looks of the screenshot alone, you can clearly see that you have copied to much of the pokégear script; so much so that the two options have morphed slightly.
 

UltimateDillon

Veteran Gamer (Sort Of)
87
Posts
11
Years
By the looks of the screenshot alone, you can clearly see that you have copied to much of the pokégear script; so much so that the two options have morphed slightly.

If you recall, Maruno himself told me it was a good idea to copy the Pokégear script and work on it from there.
 

Maruno

Lead Dev of Pokémon Essentials
5,285
Posts
16
Years
It's still true, although the Pokégear script is slightly more complicated now. It remains the simplest graphics-based menu in Essentials.
 

UltimateDillon

Veteran Gamer (Sort Of)
87
Posts
11
Years
It's still true, although the Pokégear script is slightly more complicated now. It remains the simplest graphics-based menu in Essentials.

I didn't question your advice, I understand that it's the natural thing to start with. But I still haven't sorted out the problems above and could use a little help...
 
Back
Top