Falling Through the Floor

CaramelTigerClanCaramelTigerClan Member Posts: 143
edited November -1 in Working with GS (Mac)
I have an actor that I gave the ability to jump. The problem though is that he doesn't land on the floor, he falls straight through it!

Please, is there any one who knows how can I fix this?

Comments

  • expired_012expired_012 Member Posts: 1,802
    Yup, you have to make a wall.

    Make a new actor and put it off screen right below where your character would usually fall through. Adjust the width size to how you want it

    Give the actor a collide behavior. Make a bounce when colliding with whichever actor you want it to collide with

    You can change the impact of the collision by changing the restitution of both actors.

    If you want your wall to be invisible go to colors and change alpha to 0

    Hope this helped
  • BreezeonholdBreezeonhold Member Posts: 187
    Make a ground actor (which I think you have done) and then put a behavior on the actor to collide with the character.
  • CaramelTigerClanCaramelTigerClan Member Posts: 143
    Thanks for the quick replies. I will take these suggestions and apply them to my application. I'll post an updated once it's tested. Thanks again
  • butterbeanbutterbean Member Posts: 4,315
    Also, on the ground actor, make sure you "uncheck" the moveable attribute
  • CaramelTigerClanCaramelTigerClan Member Posts: 143
    @ artonskyblue, Breezeonhold and butterbean

    Wow! many thanks, it worked!

    So love this community, thanks again guys =)
  • expired_012expired_012 Member Posts: 1,802
    Glad it worked :)
Sign In or Register to comment.