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.

Freezing events

Banshi

Member

I understand event systems much better than RGSS and would like to make a battle system or a menu with events, but I have a problem. If I base the events on a separate map, when your are done with the system, you return to a reset map which would mess up puzzles, monster placement, events, etc. If you run the system on the same map not only is it probably going to lag some, but the events on the map are still running,, which creates  the possibility to "play the game" while in the menu or a battle...

I was just wondering if by using the arcane powers of RGSS:
1.) Is there any way to freeze all the events on a map, while still allowing certain
  events to run.
2.) Is it possible to save the state of a map, transfer to another map, and then come
  back the original with its saved properties.

Thanks,
Banshi
 
arcane?  You can't swing a dead cat around here without hitting a scripter!

1) probably possible. But a big pain in the ass.

2) the 'state' of the map is all bundled up in $game_map, so if you...

$game_map_save = $game_map

then transfer to your second map & do your menu or battle, then transfer back &

$game_map = $game_map_save

it might work. (I didn't test it)
 

Banshi

Member

Don't know if its just me, but I tried and got nothing.
I set up a simple map with a moving character to test if he is saved mid path or resets.
Doing $game_map_save = $game_map, transfer map. Followed by another transfer back and $game_map = $game_map_save yielded nada, the map just reset. Any suggestions, or should I just attempt the unthinkable... and go to the darkside (RGSS)
:P

Thanks for the speedy aid,
        Banshi

P.S.
  arcane as in "requiring secret knowledge to be understood," but I see where your coming from Brew :P
 
I knew what you meant. Just a matter of perspective.

try setting $game_map = $game_map_save BEFORE the transfer back?
[ edit ] nah, don't bother. I tried it. No luck!

While menus & battle systems have been done with events, scripting is really the way to go. Menus, once you understand them, are really pretty easy with RGSS.
All of the mechanics are already there, you just need to arrange them how you want.
Battle systems are in the 'advanced' category.

If you do decide to "come over to the dark side", there are plenty of us around to
"...guide you along the path, Grasshopper."  :scruff:

Be Well
 

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