Moving Platform

I am currently working on making a moving platform in my game, but I am coming across many problems.

1) How can I make the platform move at a constant speed?

2) After a few seconds the platform slowly starts moving downwards. I have looked at the walls that it collides with, but I can't seem to figure out the problem.

3) When the actor jumps on it, it falls at a much faster pace, so I guess it's the same question as #2: How do I allow it to move x but not y?

Any other tips?

Thanks in advance.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    image
  • hambuerger7hambuerger7 Member Posts: 45
    Thanks! It works! I didn't think it was that simple!
    :D
  • hambuerger7hambuerger7 Member Posts: 45
    Wait, actually now it doesn't let me double jump on the platform; just single.
  • hambuerger7hambuerger7 Member Posts: 45
    Bump
  • ashtmjashtmj Member, PRO Posts: 405
    make a new attribute within your ledge actor called "my Y"

    Then add these rules to the top of your actor

    Change attribute my Y to self.positionY

    followed by

    Constrain self.positionY to my Y

    that will hold it in place
Sign In or Register to comment.