Actor on moving platform help please
Hi,
I want my actor to land on a moving platform but without me having to move the actor with the platform. I want the actor to land on it when it moves and stay on it.
How do I do this? Thanks
I want my actor to land on a moving platform but without me having to move the actor with the platform. I want the actor to land on it when it moves and stay on it.
How do I do this? Thanks
Comments
Sorry I don't understand what to do. I have tried but clearly doing something wrong. Sorry to be a pain could you give examples?
Thank you
left and right … as @ashtmj said constrain X
up and down … constrain the playerActor's Y
@};- MH
ACCELERATE- direction 270, Acceleration 400, Relative to actor
COLLIDE- floor
CHANGE ATTRIBUTE- (self.M.L.V X) to 100
RULE- self.pos X > 400
CHANGE ATTRIBUTE- (self.M.L.V X) to -100
RULE- self.pos X < 100
CHANGE ATTRIBUTE- (self.M.L.V X) to 100
for the physics, Density is 1, Friction and Restitution is 0
Fixed Rotate and movable are both ticked
What do i change? and where do i add the constrain X?
Thanks again
-on the platforms: Rule: when: overlap or collides with playerActor - constrainAttribute: game.platformX To: self.Position.X
-on playerActor Rule: when: overlap or collides with platform - constrainAttribute: self.Position.X To: game.platformX
then constrains are only active during overlaps/collides
@};- MH
ACCELERATE- direction 270, Acceleration 400, Relative to actor
COLLIDE- floor
CHANGE ATTRIBUTE- (self.M.L.V X) to 100
RULE- self.pos X > 400
CHANGE ATTRIBUTE- (self.M.L.V X) to -100
RULE- self.pos X < 100
CHANGE ATTRIBUTE- (self.M.L.V X) to 100
for the physics, Density is 1, Friction and Restitution is 0
Fixed Rotate and movable are both ticked
but don't know how to do up and down, thought of changing the X to Y but that doesn't work.
thank you for your help
hooray! you got the left and right! and, now you can get the up and down!
@};- MH