quick question: Moving Platforms

bgappsbgapps Member Posts: 183
edited November -1 in Working with GS (Mac)
i am making a platforming game where my guy jumps on top of other blocks to get to the top. To make it more interesting and fun i want one of the blocks to go side to side so its harder for the player to jump on it. The rule i did was when the block hit the side of the game it rotates 180 degrees really fast and moves to the other side and so on...
The only problem is that when the guy jumps on top of the moving block it moves out of place and its use less :(
Can some one please tell me how to get around this problem
thanks,
BG

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Try using a a constrain to hold self.position.y to the same place while allowing the rest to keep on moving
  • bgappsbgapps Member Posts: 183
    sweet thanks
  • BackUpAndDownBackUpAndDown Member Posts: 685
    tenrdrmer said:
    Try using a a constrain to hold self.position.y to the same place while allowing the rest to keep on moving

    Eh, won't that make it hard for the player to get off the platform?
  • bgappsbgapps Member Posts: 183
    Huh, every time i jump on the moving block I fall right through it even though I have the collide behavior on.
    help
  • bgappsbgapps Member Posts: 183
    but thanks to tenrdrmer the block is staying it place
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    BackUpAndDown said:
    Eh, won't that make it hard for the player to get off the platform?

    Constraining the block not the player. Why would this not allow it to jump on and off

    @bgapps. I have read people say the constrains sometimes override collision rules. not sure why it would in this case but i'm not yet a constraining expert.

    Good luck. If your luck tshirtbooth or someone may chime in and point you in the right direction.

    Sorry I couldn't help Good luck
Sign In or Register to comment.