Elavator

Hi,

how can you make a elavator move?
i have different elavators one must stop at 2 floors and the athor at 3 floors.
i’m using blender 2.53 beta, so please send a blend file.

greetz

Ipo? Maybe you should start here then do this.:wink:

I second that. Animate your lift from position A to position B then enable it through an F-Curve Actuator
Works for me :smiley:

Thnx guys,

is that the only way?
because i have don that for sliding doors to, but what hapend when you have 5 doors?
and how do i get up, when the timeline starts at the top?
can you reverse the timeline?

greetz

here is the elavator test
i hope you like it
it’s in 2.53 beta

Attachments

elavator003.blend (867 KB)

i’ll check it out when i get back from school :D, ( roughly 2 - 3 more hours :eek: )
I did some elevator stuff last week :RocknRoll:, hopefully, i can help out.

do you know how to make a door keypad
something like in the game Stalker.


you need to enter a code before a door open

I took a look at the elevator, i think that if you set the f-curve type to ‘flipper’ instead of ‘play’ it should do what you want it to do, otherwise you might want to take a look into states.
*Im using the 2.54 beta and the sceen looks solid, unfortunately i was getting an error
with the line 60 of movement.py, hence i couldn’t ‘play’ the game.

Door keypad… I have never attempted such a thing how-ever my guess is that
you make the keys separate and upon the ‘use’’ of the button, you make it send a message
to the door. Afterwards only if it gets the right string of messages ( the opening code ) does the door open.

Again all of the last paragraph is purely hypothetical and would need some polishing up to work.
Let me know whether the elevator works alright now. :smiley:

hi krustof,

whats the differents between play and flipper?

greetz

Heres the solutions that I would take… Animate the elevator moving up and down. Lets say frames 1 - 50 are going up, 51 - 100 are down.

Lets say you wanted to go from floor 1 to floor 2, than back down to 1.

Give the Elevator an int Property, lets say “floor”, with a value of 1

1st set of blocks- Make it so whenever the sensor is activated (in my .blend it is a near sensor set that when an object with the property of “person” it is activated) and if the property “floor” has a value of 1, it plays the ipo 1-50 and then use a property actuator to set the the “floor” property value to 2.

2nd set of blocks- almost the same as the first. Make it so whenever the sensor is activated and if the property “floor” has a value of 2, it plays the ipo 51-100 and then use a property actuator to set the the “floor” property value to 1.

Hope that helps! Just post if you have any questions.

Attachments

elevator.blend (139 KB)

i have made this one
when you press the numbers on youre numpad:
1 - from floor 1-2 and press again back 2-1
2 - from floor 2-3 and press again back 3-2
3 - from floor 3-4 and press again back 4-3
4 - from floor 1-3 and press again back 3-1
5 - from floor 1-4 and press again back 4-1
6 - from floor 2-4 and press again back 4-2

but when the elevator is on floor 4 i cant go back to 1, because he will jump first to 1

example:
i’m on floor 1 and i need to go too floor 4 (i press 5)
but now i need to go to 2 so i press 6
he will then jump to 2 and is going to 4 when i press 2 again, then he’s going nice to 2

lol

Attachments

moveandelavator009.blend (783 KB)

is there a way to make something like the picture to work?

Attachments


Use a mouse over on the button connected to the mouse button (assuming you’re using a mouse) then use the AND controller.
With out a mouse just assign keys to it, but limit it with a near sensor (or collision on the floor underneath)
Then you can set the AND controller to do what you want (ipo, send message to close doors etc)

i know how to work with AND controller and the Mouse Over or Keyboard key.
but how you work with Collision?

do you hove a blend file (2.53) with a example?

greetz

Simply add a property (it can be float, int, string etc.) to the floor under the panel (in this case) and make sure its an actor. You may want it invisible if you have another floor already there, or not if you are just using inside the elevator.
Then on the the player add a collision sensor and put in the floors property there.

I don’t use 2.54 but here is a file with 2.49
Use left and right to move. Contact with the red floor switches a panel between red and green…

Attachments

Collision.blend (150 KB)

here’s my blender file for 4 floors

greetz

Attachments

elavator4floors.blend (843 KB)