Collide platform Problem.

KEE4KEE4 www.chriskieffer.comLos AngelesMember Posts: 65
edited December 2011 in Working with GS (Mac)
Im working on an endless runner style game. I have the platforms randomly coming at the runner and locked the Y axis so they dont move down but if the runner hits the side of it, it moves back a little. I tried having the density of the runner 0 and the platform really high but it still does it. Any ideas would help. Thanks

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Turn the platform Restiution down and up the player a little bit. see if that makes any difference for you.
  • ozboybrianozboybrian PRO Posts: 2,102
    edited December 2011
    Did you adjust the density of both actors?
    It shouldn't move anyway... What rules do you have set up for when they collide?
    And what behaviour are you using to make it move?

    Edit - @Tenrdrmer lol got in before me by a mili second :P
  • KEE4KEE4 www.chriskieffer.com Los AngelesMember Posts: 65
    Tenrdrmer - I have them both set at 0 so there is no bounce.

    Ozboybrian - I tried the density, as for the setup....
    I have its linear velocity X = -200, so they are moving from right to left
    Rule
    self.Position=-268
    Change Att - self.position.x to 748 so when it moves off screen it goes back and starts over again.
    Also have a Constrain att set on Y axis so it doesnt move up or down.

    Thanks
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    constrain its linear velocity then it wont get pushed back at all.

    ALso you might want to change when self position =-268 to when self position x is less then or equal to -268, so you dont get trigger problems down the road

    cheers
Sign In or Register to comment.