Bouncing off the sides of platforms

bagofeyesbagofeyes Member Posts: 2
edited January 2012 in Working with GS (Mac)
Hi guys. I'm trying to make a platforming game where the main character keeps moving. I set the restitution of the rectangular platforms to 0 so that the character doesn't bounce when on top of them. However, when he hits the sides of the platforms he loses all momentum and comes to a stop. When restitution is on 1 he bounces off the sides of the platforms and goes in the opposite direction, like I want him to, but then he also bounces on top of them. Is there anyway to have him bounce off the sides, but not bounce on the tops of platforms? Thanks for your help

Comments

  • David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    edited January 2012
    The way I would do it ( because i believe there is no way to split restitution ) make an actor for your platform ( make restitution zero ) then make another actor for the sides of the platform and the parts you want the player to bounce off ( make restitution 1-3 ) Hope this helps :D just the way i would and have done it before. Let me know if it help.

    David
  • bagofeyesbagofeyes Member Posts: 2
    Thanks. I tried that and it seems to work well for the most part, but every now and then the guy hits the corner of one of them and starts bouncing upwards or gets stuck :/

Sign In or Register to comment.