Page 1 of 1

Fix my elavater butins

Posted: Tue Apr 08, 2008 8:11 pm
by Dr. Dos
Started making a new game and it needs an elevator.

The first button works, but the second one I started to add does not.

Find out why going from floor 1 to floor 2 and then trying to go back to floor one is broken.

http://zzt.org/dr_dos/elevator.zzt

Posted: Tue Apr 08, 2008 10:03 pm
by Ellypses
Change your number labels to letters. ZZT is bad at half-ass reading send code when it contains numbers so it stopped at the first label "12" when it first spotted "1" on twelve.

Posted: Wed Apr 09, 2008 6:53 pm
by Commodore
the door moves up but the picture shows double sliding doors. I suggest an interior shot. or make it look like an old freight elevator. or don't, it still looks good.

nearly typed zzt.exe elevater.zzt

Posted: Wed Apr 09, 2008 7:24 pm
by Quantum P.
Or just have the door #char 32 right before it slides into its frame, so the door simply disappears.

Also, you can break the elevator by touching the buttons as they whiz by. You need either to #lock/#unlock or #zap all:touch/#restore all:touch. I think #zap button:touch also works, but I don't know if it zaps all the buttons or just the first one.

Posted: Wed Apr 09, 2008 9:47 pm
by Dr. Dos
It needs even more work since you're also able to take stairs so I need to make it go to a default position after you leave it.

Posted: Thu Apr 10, 2008 7:43 am
by Commodore
are you saying you want it to return to a specific floor after you get out? what are the circumstances with the stairs? do you go back to the bottom with the stairs? seems you might need to make touching the door call the elevator. you could make the objects that are the elevator blank when you are not in it so that you can make it walk and :thud into the bottom before moving it to the right floor without making it look odd.

Posted: Fri Apr 11, 2008 4:32 pm
by Quantum P.
It doesn't necessarily have to go to a default position -- summoning the elevator could have the elevator go up/down, figuring out where the player is via #if alligned checks. But that might be more trouble than just sending the elevator down to the bottom.

Posted: Fri Apr 11, 2008 5:55 pm
by Dr. Dos
That's how I planned to do it.