Legacy GM Pausing Methods



I need to make a pause screen where you can swap items and such.. What would be the best way to go about this? I know how to pause things.. But how do I make the actual menu?

Joe Ellis

I just use an object called "obj_paused", and upon pausing, do:

with all
if object_index <= last_object_before_menu_objects
obj_index = object_index
instance_change(obj_paused, false)
The last_object_before_menu_objects is to enable the menu object to still be active while the game is paused, any menu object should be after the rest of the game objects in the resource tree.

Then when unpausing:
with obj_paused
{instance_change(obj_index, false)}
Menus can be hard at first, but a good tip is to make most of the variables global, like a slider changing something, if it's global you don't have to do any linking things between the gui objects.
A good way to go about it would be to think what you actually want the menus to do, like what they are controlling and plan and make what you need to do for that to work.
Last edited: