Make an actor movable only sometimes

HachikoHachiko Member Posts: 330
edited November -1 in Working with GS (Mac)
Ok, I have a little problem, hope you can help me.
I have an actor that fall from above. When it lands onto a platform, the actor goes up and the platform slide to the right.
Problem is, when the actor and the platform collide, the platform sink a bit.
With a costrain attribute = self.position.y to given coordinate, the problem is solved, but the constrain attribute isn't really an FPS helper, and I have 4-5 platform onto screen at a time.
Isn't there a best way to achieve the same result?
Deleting the collide isn't possible, cause like that the jump isn't always of the same height.

Comments

  • JCFordJCFord Member Posts: 785
    Could you not change the density of the platform to make it higher than the falling actor so it still move left and right, but is not effected my a drop from above?.

    maybe also give the platform a restitution of 0 so it has no bounce?
  • ORBZORBZ Member Posts: 1,304
    unticking physics > movable makes the platform unmovable via the physics behaviors (accelerate, rotate, etc) and the linear movement behaviors as well (Move, Move To) so you will have to do your own interpolation to simulate any movement animation using the Interpolate attribute.

    This will make the platform fixed, but it puts the responsibility on you to move it by manually tweaking the x and y position.

    (You may also want to turn on Fixed Rotation under Physics, but then you are responsible for calculating it's rotation, if any)
  • HachikoHachiko Member Posts: 330
    The density is not good, i tried that. Friction even.
    For the interpolation thing, I really don't know that behaviour much. What's the difference between it and the constrain one?
  • ORBZORBZ Member Posts: 1,304
    interpolate changes a value over time
  • HachikoHachiko Member Posts: 330
    I'll ask it there to not make another topic :)
    It seems I can't publish. It stuck on the upload thing and then says that too much time passed without a response.
    A couple of days ago I uploaded fine, but it's been like this since yesterday.
  • HachikoHachiko Member Posts: 330
    No one had this problem? It's pretty frustrating. I didn't update the sdk, maybe it's because of this?
Sign In or Register to comment.