Platform Question

Fal01Fal01 Member Posts: 460
edited March 2012 in Working with GS (Mac)
Hi All,
I'm making a game where you land on a platform that moves across the screen,the problem is that when the player lands on the platform it moves down slightly. How can I make the platform keep going at a constant height?
And also I need the player to ride the platform across the screen but he keeps falling off due to the velocity of the platform.

Any help would be appreciated.

Cheers.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited March 2012
    On your platform set restitution to zero. Try increasing the friction of the platform to keep the character from falling off you could also make a rule that says when actor overlaps and collides with platform increase the actors friction as well and then return it back to normal friction when player is off platform.
  • Fal01Fal01 Member Posts: 460
    Thanks FBS. how do I fix the Y position?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Use a constrain attribute to constrain the y to the height of the platform to the height you desire.
Sign In or Register to comment.