Ladder function - cannot walk trough the platform?
KIIVIIN
Member Posts: 159
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
Might help?
http://gshelper.com/shop/gamesalad-templates/ladders/
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?
He collision behavior can be put in rule and cut off anytime you want.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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 !
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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
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?
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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Okey, then I make it the hard way !
Thank you for the information!
It's not the hard way, it's the right way
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS