Game Development Community

pushing a gui on startup when loading a certain mission

by Foestar · in Torque Game Engine Advanced · 12/02/2009 (8:34 pm) · 1 replies

So I wanted to create an active screen with a in game model for the player to look at when creating his character in my game so they have an idea of what it looks when choosing it's features. So for this reason I decided to make the character selection screen a mission itself. Nothing too fancy; I just created a small mission where there is a river, dock, trees, and braziers with fire particles. So I'm going to place in the model in front of a custom camera view as soon as you load in allowing the player to have something to start with.

Now this is where the problem is. I was thinking on how I was going to do the menu choices for the character creation screen. So I figured what I would do is create simple gui's that would be pushed when needed. This way I could create quick feature options for the player to select through off to the side of the character and when they are finished with one part, it would pop one of the dialogs and push another. Easy enough. However, I am having trouble getting the first gui to come up when the map loads. So far everything I've tried has either not worked (as in doing nothing at all visibly) or caused Torque to crash. So I was wondering if anyone could give me an idea how to get a simple gui to show as soon as the mission loads so it's as if it was part of the mission.

Edit: I've got it to show up now. But I can't get it to show up on only this map. It shows up at all times.

#1
12/03/2009 (1:08 am)
Nvm, I got it working. What I did was create a variable and made it so when you enter the character selection screen mission it equals 1. Then in the play gui file I made an if statement checking to see if it equals 1 and if so push the proper gui dialog. Simple enough.