Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

[MMF2] Sub-Application


Asuma

Recommended Posts

I would guess that you'd make the menu, and as you move through the different items, set a counter to a certain value. When the Sub App is destroyed, send the value of the counter back to the main program.

Link to comment
Share on other sites

Why would you want to use a subapplication for that anyway? I always figured subapplications were for when you wanted more than one window to work with.

Speaking of which, what are subapplications usually for anyway?

Well, if you know and effective way to create a in-game menu, please do share.

Also, would it be better for A.I. to use Platform Movement Object as its engine? Or just use Alternate Values?

Link to comment
Share on other sites

It's easy. Actually the subapplication lets you pause the application. The problem making every object movement to pause is that you will always miss something. Just imagine you have an object with a bouncing ball movement that moves when it mets a condition. When unpausing the game, you will forcefully to make it start, and you cannot make a condition for each object when paused, since you'd have to make a different pause group in each level. Not talking about animations.

The idea is this. You have a "play" level. In this level you just have one sub-application object where you play the game, warping at first to the first level you want to play, or to the level where you load the game.

In the play-level frame you can put the pause events. If you press button 4, pause sub-application, and if you want, you can create a new sub-application in front of the current one loading the menu frame.

Just remember to destroy that new subapp after you exit the menu. Be sure to keep the things into global values and share them with the sub application in order to let any subapplication to alter the other frames.

Do not let the subapp to resize the frame, since it will slow down a bit and, even on the same size, it resizes a bit.

Example where frame 10 is the first level and frame 3 is the menu frame. Frame 4 is an empty frame where you go after you exit the main menu, and the main app detects you exit the menu by reading you are on that frame.

attachment.php?attachmentid=784&stc=1&d=1212047384

post-107-13863976207_thumb.jpg

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...