How Do I Fix This Ladder Bug?

Get help using Construct 2

Post » Tue Jun 18, 2013 10:53 am

Whatsup everyone,

I have a link here to my game and im having an issue with my ladder,I somehow keep ending up in the ground can someone look at this and give me an explanation.Its not a capX file but a demo of my issue. The controls are platform movement,left,right,up,down arrows. I usually would fix this isue with a check for solids code but im not sure how to do that on construct 2 yet.THE DEMO

If i dont give a reply right away its because im at work,Thanks everyone.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Tue Jun 18, 2013 11:13 am

Awesome Stuff Rookie! I dont know how to fix your bug but I like your graphics! !! Im buying this game if you sell it.I just love your main character he is a mix between Cute and Deadly! Lol keep me updated. Sorry for no fix bro
B
9
S
5
Posts: 126
Reputation: 1,295

Post » Tue Jun 18, 2013 3:24 pm

Maybe if you use the "Is overlapping at offset" condition to check if the player is directly above a ground object. If he is, jump off ladder.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jun 18, 2013 7:04 pm

@Nimtrix Thanks man this is kinda what im looking for but how could i be more Broad like Checking for any Solid and not just that Tile? This will be a sandbox game so the player will be able to place ladders anywhere he or she wants to place them.I just want to avoid all issues with solids altogther.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Tue Jun 18, 2013 7:07 pm

If you have a license you can put all your solids in a family.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jun 18, 2013 7:12 pm

@Nimtrix i havnt used the family feature at all as of yet but i will give it a look.But really if i put all my solids in a family wouldnt give me the total solution,Im really asking How do I check for all solids or do i just place all my solids in a family and then just check for the Family? I think im close,i just want to be sure.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Tue Jun 18, 2013 7:14 pm

I've never made a platformer, so I'm not much help, but I did notice this ladder example has invisible bumpers at the ends of the ladder:

http://www.scirra.com/forum/platformer-simple-ladder_topic46754_post292735.html#292735

edit: just ran the demo again, and noticed the problem at the top too, I got stuck in the platform. Maybe check for collisions with the ground?Paradox2013-06-18 19:21:47
B
239
S
62
G
33
Posts: 903
Reputation: 40,562

Post » Tue Jun 18, 2013 7:16 pm

Yea, put all the solids in a family (you can call it "Solids"), then check for collision of the family.

You can also add behaviours to families, so if you add all the objects in, then add a solid to the family, you've added the solid behaviour to all of them. Not so useful now since you've probably added the behaviour to each solid object individually, but it can be good to know.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jun 18, 2013 7:26 pm

Actually im still pretty early in development and with this info i can move forward with this project,Thank you @Nimtrix.Also @Paradox i did check them out,that was where i learned how to do what i did so far,with some added features like being able being able to move left or right while on the ladder,I just didnt want to include bumpers to collide with.It would be buggy for me in my situation since the player will be able to place these ladders freely.Thanks again guys
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378


Return to How do I....?

Who is online

Users browsing this forum: Phacanu, sean080 and 4 guests