Moving Platforms

ToastKittenToastKitten Member Posts: 360
edited November -1 in Tech Support
Problem: Every time I try to use the self.Motion.Linear Velocity.X, it doesn't move. I figured out that I had 'movable' checkbox under the physics column unchecked. That made it move, but every time my character jumps on it, it flys away.

I already have a workaround that just uses the actor's X coordinates and it doesn't look as smooth.

Any Suggestions?

Comments

  • specialist_3specialist_3 Member Posts: 121
    I am not sure but maybe you could increase the moving platform's density to a high value? I think high dense actors cant be moved easily by low dense actors.
  • hrsmediahrsmedia Member Posts: 522
    Yea I asked this question before. Only solution I came up with is to increase the density as specialist_3 says.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    You need to constrain the platform's Y position.

    In the platform actor, create an integer attribute called something like "originalY".

    Then add a Change Attribute and a Constrain Attribute, like this:

    Change Attribute: self.originalY To: self.Position.Y

    Constrain Attribute: self.Position.Y To: self.originalY

    That will make the platform stay put and float in place.
  • specialist_3specialist_3 Member Posts: 121
    Joe, density wont work here?
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Density is bullshit... seems to do nothing. Also, change restitution to zero so it doesn't "bounce".
  • specialist_3specialist_3 Member Posts: 121
    Never played with density. Will take note of that.
Sign In or Register to comment.