Previous Blog Next Blog
Prev/Next Blog
by date

Plan for Daniel Allessi

Plan for Daniel Allessi
Name:Daniel Allessi
Date Posted:Mar 19, 2005
Rating:4.0 out of 5
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Daniel Allessi

Blog post
Teleporters!
I just finished adding in the teleporters for my platformer. No offense to whoever wrote the teleporter resource on here, but it was lacking for my needs.

I had to add a callback in the engine so ::onAdd will be called for triggers, but other than that, all script. The system generate a new ID for every teleporter (and accounts for teleporters you may have already saved in the mission file). You specify the ID of the teleporter pad it will take you to, or if the pad is receive-only, and voila. It won't bounce you back and forth between teleporters since it remembers the last teleporter you were on (which is reset when you leave a trigger area).

They work wonderfully, and the only things I need to make them perfect for my game is the ability to specify if the player has to press a USE key to teleport (right now they just teleport you on entering) and making the camera smoothly pan to the destination location.

All you need to change in an existing codebase are the one-line addition to the engine, a call to teleportTrigger::registerMissionPads() from your onMissionLoaded function, and add a lastTeleporter field to the players allowed to use the teleporters.

I am considering adding them as a resource but I'm still unhappy about the fact that my last resource from Mar 7th was never approved, nor was I told why.

Recent Blog Posts
List:05/06/05 - Plan for Daniel Allessi
04/02/05 - Plan for Daniel Allessi
03/19/05 - Plan for Daniel Allessi
03/09/05 - Plan for Daniel Allessi
03/07/05 - Plan for Daniel Allessi
02/23/05 - Plan for Daniel Allessi

Submit ResourceSubmit your own resources!

Erik Madison   (Mar 19, 2005 at 18:45 GMT)
It's probably still in queue. I'm pretty sure someone actually _reads_ the resources before they are added, and on occasion that happens somewhat slowly. GDC just ended, at least one GGer is off for vacation, etc. Give it time, it will show up. In fact, I've got a small one in queue myself, posted a few days after yours.

Daniel Allessi   (Mar 19, 2005 at 19:55 GMT)
Ah, cool cool. I'll see about writing this up then. :P

Jeff Tunnell   (Mar 19, 2005 at 22:49 GMT)
March 7th was GDC. Since we got back, nearly everybody is sick. I don't think anybody has even looked at resource approval in the last two weeks.

Daniel Allessi   (Mar 19, 2005 at 23:45 GMT)
No biggie Jeff, I was moreso just excited about finally being able to do a resource. :)

You must be a member and be logged in to either append comments or rate this resource.