Game Development Community

Teleporter... well one of these days

by Matt Yopp · in Constructor · 10/19/2007 (2:04 am) · 6 replies

img80.imageshack.us/img80/9569/teleporteras6.jpg
Hopefully one day (time, God, and programming skills permitting) I can turn this simple, Greek/ medieval style gazebo pavilion thingy (love my technical terms) into a teleporter. The whole concept of them is to place one behind each of the castles in my level for quick jumps from base to base. When I get around to implementing the CTF, however, I want it to behave like CTF matches in other games, whereas the player loses the flag if he/she steps into the teleporter carrying it. Good luck with that crap right?? Yeah.... don't know hardly where to begin.... if I could get some pointers it would be AWESOME!! Thanks as always for checking my stuff out!!

#1
10/19/2007 (7:33 am)
A teleporter is amazingly simple to do in TorqueScript. Even more so if you have AFX, which has a sample teleport spell and FX built in.

Great works by the way, I've looked at all of them so far and you are rockin' it!
#2
10/19/2007 (7:51 am)
@ Matt : It's pretty simple to implement a teleporter. Place a trigger where you want the teleporter, in the trigger method (I think it is onfire or something) make it set the players pos to the pos of some predefined player spawn point (look at the scripts which drop the player in the mission on mission load in game.cs).

I use this in my game to trasition Missions, not just points within missions. Have a look at the resources, there is a nice one you can get pointers from.

Your flag dropping code will need to happen there too, but at the very minimum you simply unmount the flag mesh from the mount point.


Nice gazebo btw ;)
#3
10/19/2007 (6:56 pm)
Wow, thanks alot for the speedy posts fellas!!

Mike: What is AFX if you don't mind my asking?? Is it one of the content packs you can get here??

Gareth: Thanks again for the advice man, I think I understand how to go about implementing it, from here on I guess it's just trial and error.

THUMBS UP!!
#5
10/20/2007 (11:18 am)
@Matt - Arcane FX: Combo pack

This content pack is hailed as one of the most important and useful tech engines you can get for TGE. On top of the amazing an pretty affects you can create, the functionality the system adds to your game can alleviate common problems and stress. However, it is a rather advanced system and has a steep learning curve even for veteran TGE users.

If you start getting deeper into TGE (both script and engine), you'll eventually want to pick this up. Check out the demo videos and search the blogs.
#6
10/21/2007 (2:59 pm)
DOOD!!! Mark, thank you thank you thank you!! I can't thank you enough for pointing me in the direction of that awesome resource. I got a chance to meander through it a bit, and I think it'll help me out alot!! 5,000 points of coolness to you friend!!!

Mike- wow man, have you ever considered a job in marketing?? Cause wow, the way you pitched AFX to me makes me want to get it just on the principle of your pitch..... I think somebody at GG needs to give you a job my man!! I'll have to give it a try.

THANKS AGAIN GUYS!!!