Ladder function - cannot walk trough the platform?

Hello,

I designed a platform game where you walk a character on a platform.
I added a ladder which works fine but I got an issue that I cannot figure out.

I want the character to be able to climb the ladder through the platform above.
What rule do I use to make the player (actors) top (head) pass through the platform?

At the moment the bounce when colide with player is active so I know thats the issue. But how can I make it only bounce when the feet is touching the platform?

Ladder function is all ok but this small part I cannot figure out.

regards

Comments

  • KIIVIINKIIVIIN Member Posts: 159

    It might help, But I already set up all functions. All I need an explanation for is to how I can make the player pass the platform when collision bounce is active.
    Got any clue?

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    He collision behavior can be put in rule and cut off anytime you want.

  • ArmellineArmelline Member, PRO Posts: 5,406
    edited January 2016

    Put the collision rule for the platforms in the player and when collision bounce is active, do nothing, otherwise collide with platforms.

    I made a (free) ladders template it might be worth you checking out too:

    http://gshelper.com/shop/free-templates-and-tutorials/armellnes-easy-platformer-ladders/

    Very simple.

  • imjustmikeimjustmike Member Posts: 450

    Does this help?

  • KIIVIINKIIVIIN Member Posts: 159

    @imjustmike said:
    Does this help?

    I did this tutorial already but the player just falls through the platform without bounce.
    I will try out @Armelline 's ladder that he posted.

    Thank you guys for the help so far :)!

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Having bounce shouldn't make a difference. You might not have your code setup properly. Sounds like a collision issue. 1.25 fixes that issue.

  • KIIVIINKIIVIIN Member Posts: 159

    @Lost_Oasis_Games said:
    Having bounce shouldn't make a difference. You might not have your code setup properly. Sounds like a collision issue. 1.25 fixes that issue.

    Well, I managed to get the video tutorial work. Issue is that I got different type of platforms and all of them are under tag "ground" and in this video he sets the attribute codes directly to the platform, I want to avoide that but cannot make it work.

    You know how to write the code when you put it in the player actor, I mean the code he uses directly in the platform?

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited January 2016

    You should seperate out the platforms especially since you want your actor to pass through them at times. Just add the platform collide to your jump rule et.. Where they are treated a ground. You need to have isolated branches of logic to do this properly. I know this is a bit more work but you can't avoid doing it right becuase you have to do some extra work. If you want to make good games put in the work to do it right.

  • KIIVIINKIIVIIN Member Posts: 159

    @Lost_Oasis_Games said:
    You should seperate out the platforms especially since you want your actor to pass through them at times. Just add the platform collide to your jump rule et.. Where they are treated a ground. You need to have isolated branches of logic to do this properly. I know this is a bit more work but you can't avoid doing it right becuase you have to do some extra work. If you want to make good games put in the work to do it right.

    Okey, then I make it the hard way :)!
    Thank you for the information!

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    It's not the hard way, it's the right way :)

Sign In or Register to comment.