Game Development Community

Torque question

by Eric Wendorf · in General Discussion · 10/16/2008 (6:43 pm) · 1 replies

I'm currently making a game and for the play gui i want to try to make a image in Adobe Flash CS3 where the tool bar i'm putting in will have a bar going across, lets say the clue background of the tool bar, and the bar going across will change red or some other color. is it possible to do something like that in Flash CS3? If so how?

#1
10/17/2008 (12:39 am)
I'm not sure if this is what you need, but there is a resource for getting gameSWF into the Torque Game Engine. It works very well, but has a few limitations and caveats. Implementing Flash functionality in Torque will require C++ source code changes, should integrate fairly well with TGE 1.5.x, but might be a pain to get working in TGEA 1.7.x. Anyway, here's the link . . .

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7119

However, if I'm understanding what you want to do, you might be able to accomplish what you're describing with a nice combination of Torque's built-in gui stuff. If your tool bar needs mouse interactivity, then four-state bitmap buttons might provide a simple and elegant solution for you. Here's a link with more information on that . . .

www.garagegames.com/mg/forums/result.thread.php?qt=53566

If you just want triggers and other in-game events to show or hide toolbar images/icons, then I would create some guiBitmapCtrl controls, stack them on top of each other in the same position and just call some variation of the following script from your triggers . . .

cluebreadcrumbs.setvisible(1);

Of course you would want to use your own gui object names and a different set of base images for each one, but that's pretty simple to do.

I hope that helps. If I misunderstood something, feel free to elaborate and I'll give it another shot. :)