Creating a lift?
hrsmedia
Member Posts: 522
I'm trying to do a lift using change velocity (constrain attribute linear velocity). But when I have gravity on, the player actor pushes the lift down when you move on top of it. I have tried using with gravity and without gravity using accelerate down on the player actor.
Does anyone know what is the best way to achieve this? Thanks
Does anyone know what is the best way to achieve this? Thanks
Comments
Use interpolate to change self.position
I havent tested it but that should do the trick
http://gamesalad.com/game/play/63594
Put 270 acceleration in any falling actors instead. In the lift use move or move to and set it's density to a very high number (try 1000) that should make it so the collision with the main actor is hardly noticeable.
TIP: Create a game integer attribute called game.gravity. Set it to 400 or so. In the 270 accelerate behaviors for every falling actor use this for speed. Then if you want gravity to be "stronger" you only have to change the value of the attribute in the main attribute screen and it changes it for ALL falling actors - big time saver!
Rule
When self.positionY ≥ blah
Down Rules
Rule
When self.positionY ≤ blah
Up Rules