Where to find answers to some basic questions
by Marcus Giese · in Torque Game Builder · 12/13/2007 (11:21 pm) · 2 replies
Now that I have gone through the tutorials, and managed to build some of my own levels, added some of my own animations, back ground, behaviors/interactions, etc. I still have some very basic questions, such as:
How do I move from one level to the next in the game, i.e. have a "next arrow", or move to next level when the current one is finished? That is, how do I load another level from my game? [I did notice that someone else asked this question, but there wasn't enough info for me to make that work]
Is there an easy way to "pick up" an object with a mouse. That is, click on it, move the mouse, and drop it on something else. It seems like one way would be something like the "follow mouse" behavior and detect the collision with the target, but it seems there should be a cleaner way.
Is there a simple way to have a basic"pop up", something like a "about" or "help/instructions", that could be placed on every screen/level?
I'm not really expecting that someone explains all this to me, but would really appreciate it if someone could point me to a source/tutorial/sample that shows some of this. Basically I'm looking for some "game flow" and interaction help/references, for a multi-scene/level type game, in which the player interacts by clicking/moving objects (it's a very basic kids game)
Thanks in advance! Marcus
How do I move from one level to the next in the game, i.e. have a "next arrow", or move to next level when the current one is finished? That is, how do I load another level from my game? [I did notice that someone else asked this question, but there wasn't enough info for me to make that work]
Is there an easy way to "pick up" an object with a mouse. That is, click on it, move the mouse, and drop it on something else. It seems like one way would be something like the "follow mouse" behavior and detect the collision with the target, but it seems there should be a cleaner way.
Is there a simple way to have a basic"pop up", something like a "about" or "help/instructions", that could be placed on every screen/level?
I'm not really expecting that someone explains all this to me, but would really appreciate it if someone could point me to a source/tutorial/sample that shows some of this. Basically I'm looking for some "game flow" and interaction help/references, for a multi-scene/level type game, in which the player interacts by clicking/moving objects (it's a very basic kids game)
Thanks in advance! Marcus
About the author
#2
Marcus
12/26/2007 (7:23 pm)
Thank you David. I now have all of the parts of my little game working, which is kind of fun...For the follow/pick-up part I just used the mouse behavior, which worked great.Marcus
Associate David Higgins
DPHCoders.com
1) Look into using the loadLevel() function provided in the common directory. This will load your next level up.
2) There are mouse behaviors in 1.5+, or, you could just do an 'onMouseDown', 'onMouseMove', 'onMouseUp' combo on the object ... and have the object follow the mouse and drop ... fairly simple process, sure there are tons of examples on TDN.
3) You could use Canvas.pushDialog(aboutDialog); (where aboutDialog is a custom GUI you create) and then have a button on the dialog that says 'close' that does the reverse Canvas.popDialog(aboutDialog)
-- David