GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

quick question: Moving Platforms

bgappsbgapps Posts: 183Member
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 Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    Try using a a constrain to hold self.position.y to the same place while allowing the rest to keep on moving

    It's not my fault I never learned to take responsibility for anything. ;)

  • bgappsbgapps Posts: 183Member
    sweet thanks
  • BackUpAndDownBackUpAndDown Posts: 685Member
    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 Posts: 183Member
    Huh, every time i jump on the moving block I fall right through it even though I have the collide behavior on.
    help
  • bgappsbgapps Posts: 183Member
    but thanks to tenrdrmer the block is staying it place
  • tenrdrmertenrdrmer Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    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

    It's not my fault I never learned to take responsibility for anything. ;)

This discussion has been closed.