Posted By
|
Message
|
SachkaDuval
Registered 07/05/2011
Points 3
|
10th May, 2011 at 21:56:56 -
Hi everyone
I guess this is a very very noobish question but I can't figure how to make a UI with MMF2 and have it stay when you move to one frame to another?
For example to have the inventory always on screen when you explore one room and another.
Is there a tutorial about creating interface somewhere? I'd be happy to learn
Thanks!
n/a
|
Silveraura God's God
Registered 08/08/2002
Points 6747
|
10th May, 2011 at 22:46:21 -
As far as I know, without using the Sub-application object which can be a little sluggish and is unnecessarily complex for such a simple task, theres no efficient way to create a nice UI across all frames, globally, without copying and pasting. You'd be better off keeping your whole game/engine in one frame and set up a level editor and loader.
http://www.facebook.com/truediamondgame
|
Jon C-B I create vaporware
Registered 23/04/2008
Points 237
|
10th May, 2011 at 22:48:01 -
Well do you mean actual frames or just a larger area inside a frame? If you mean the latter then you need to have all of your UI objects as actives and check (or uncheck i can't remember which) the box that says "Follow Frame". If its from actually frame to frame then you just have yo copy and paste the UI into the next frame.
n/a
|
SachkaDuval
Registered 07/05/2011
Points 3
|
11th May, 2011 at 01:03:12 -
I'd like to make an "escape the room" type of game : a bunch of screens to examine, and some items to grab and put in your inventory in order to escape.
I suppose I could paste the inventory in each screen, but if I grab an item in one frame (room A), how can I update the inventory in the other frames (room B, C...)?
Thanks for your help!
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1970
|
11th May, 2011 at 01:30:29 -
Use Global Values/Strings - they stay the same even when you move from one frame to another.
If you want the player to be able to save their progress when they quit the game altogether, then you will need to use an object that can save the data to an external file - such as the .ini and array objects. Otherwise, stick to global values.
n/a
|
nim
Registered 17/05/2002
Points 7234
|
11th May, 2011 at 17:20:23 -
If you're new making games I'd recommend using the Sub-application object. It has quirks here and there but it should do the job for a single-screen game like the one you described. Use the Sub-app to display the inventory and update its contents by using Global Values as Sketchy said.
//
|
SachkaDuval
Registered 07/05/2011
Points 3
|
13th May, 2011 at 00:38:50 -
I'm still too noob for the solutions you suggest ^^' (I discovered MMF2 a week ago ) But I'm trying to simplify everything by putting all the elements in the same frame...
Thanks anyway, help appreciated!
n/a
|
|
|