Collision Problems!

jblb2424jblb2424 Member Posts: 65
edited February 2012 in Working with GS (Mac)
Hey all,
Ive been working on a side scroller game and I've come to a major problem while making the game. All my main character does in the game is jump, because all the platforms move at him for the appearance that he is running. However, when the character jumps on a platform, the platform gets pushed down and it looks horrible. I can't simply uncheck "movable" in attributes because the platforms are moving at the character. Ive been working on a solution for days but no luck. Any thoughts of how to fix this?

Comments

  • zombieaddictzombieaddict Member Posts: 213
    in your platform physics is your restitution set to 0?
  • jblb2424jblb2424 Member Posts: 65
    yes, the resitution is set to 0
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    edited February 2012
    If they are coming at you from the side, then you can constrain their position Y to a specific value, and they won't go down when you land on them.

    Just drop in a constrain attribute behavior in the platform, and find out where the Y position you want it to be on the screen, and have it say for example - Constrain Attribute self.position Y to 250. You will have to unlock each actor on the stage to do this.
  • jblb2424jblb2424 Member Posts: 65
    Thank you!!!!!!! That fixed my problem :D You deserve a gold medal.
  • mrpacogpmrpacogp Member Posts: 400
    edited November 2012
    miss key
Sign In or Register to comment.