Previous Blog Next Blog
Prev/Next Blog
by date

Elevator Action

Elevator Action
Name:ChrisG 
Date Posted:Jul 17, 2007
Rating:4.0 out of 5
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for ChrisG

Blog post
I've been working at getting a script only elevator working in my game 'Strange Days'. This is my first real attempt at scripting and I've finally got it working.

I've just got to add sound, and clean up the code and it's done - then I'll post it as a resource.

Since it's script only it doesn't use moving platforms, instead it waits for bit once the doors have closed and then teleports everything inside to the selected floor. Each floor has an identical 'elevator inside' on it.

There are a couple of limitations
- It'll be for single player use only although it could easily be modified for network play.
- Static objects won't move in the elevator and will have to be duplicated in each of the elevator insides.
- At the moment decals don't want to move, although I'm going to see if I can fix this
- The elevator needs to be orientated N, S, E or W to the map.
- The elevator needs to be box shaped

The sliding doors use Mark Holcomb's scripted door resource


Here's a few screen shots...

On the ground floor


Push the button, wait... the door opens


Inside the elevator - still on the ground floor


push the button for the 2nd floor


going up... (meanwhile 'The Girl from Ipanema' musak can be heard the background...)


and here we are on the 2nd floor

Recent Blog Posts
List:05/06/08 - Guess who just got infected?
02/26/08 - ZDay Teaser #2
07/22/07 - Elevator Action - Resource Available
07/17/07 - Elevator Action

Submit ResourceSubmit your own resources!

Ed Johnson   (Jul 17, 2007 at 03:13 GMT)
Cool! I wanna see how you got the buttons to work :)

mb   (Jul 17, 2007 at 03:59 GMT)
Nice job, good choice for a song too.

Stephan (viKKing) Bondier   (Jul 17, 2007 at 06:52 GMT)
8-)))

Leroy Frederick   (Jul 17, 2007 at 09:13 GMT)
Nice work Chris!

ChrisG   (Jul 17, 2007 at 09:26 GMT)
@Ed: the buttons aren't that fancy - I've used the onInteract from the door resource to bring up a gui dialog that allows you to select the floor.

I would love to have interected with the individual buttons but I found that the bounding box of the interact object had to be quite large (something like 1m x 1m as you face it?!?) thus the button bounding boxes would have overlapped each other too much.

Michael Perry   (Jul 17, 2007 at 12:29 GMT)
Awesome work Chris! Nice song choice btw. The game is coming along nicely

Will Zettler   (Jul 17, 2007 at 15:26 GMT)
Chris:

Very nice work, what engine will this be for TGE or TGEA? I'm more into TGE 1.5.2 myself. Thanks for posting man looks sharp. Cant wait for the release of the kit. Any release date thus far? Thanks again,

Will

Blake Lowry   (Jul 17, 2007 at 20:31 GMT)
Cool.. these screens remind me of Perfect Dark on the N64!

ChrisG   (Jul 17, 2007 at 22:44 GMT)
This is for TGE. I don't have TGEA but if the scripting engine is the same then it should work in TGEA as well.

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