How do I improve the ladder

Get help using Construct 2

Post » Tue Aug 14, 2012 11:07 pm

I grabbed some samples from here and I'm trying to add more functionality to it. Here's what I have in mind:

- Set the player's position X when on the ladder.
- Stop the player from falling the ladder unless he jumps off of it.

Here is the CAPX https://dl.dropbox.com/u/89812940/construct2/climbing2.capx

If you have time to help, thanks in advance.jogosgratispro2012-08-15 20:20:34
B
85
S
31
G
22
Posts: 384
Reputation: 18,587

Post » Wed Aug 15, 2012 4:11 pm

The main problem I'm finding here is that I can't pick the nearest object to set the position X. Someone?
B
85
S
31
G
22
Posts: 384
Reputation: 18,587

Post » Wed Aug 15, 2012 4:31 pm

How about using the "Pick nearest" system condition?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Aug 15, 2012 9:45 pm

I just made some changes to the code.

Here is the new CAPX https://dl.dropbox.com/u/89812940/construct2/climbing3.capx

Now I need to improve the code when he hits the platform when he comes down the ladder.
B
85
S
31
G
22
Posts: 384
Reputation: 18,587

Post » Thu Aug 16, 2012 12:05 am

Another thing I was trying to do is verify if the player is close to the center of the ladder in order to go up or down
B
85
S
31
G
22
Posts: 384
Reputation: 18,587

Post » Fri Aug 17, 2012 10:17 am

I played around with the example uploaded here and this is what I came up with:
https://dl.dropbox.com/u/98471899/Scirra/ladderX.capx
One thing I don't like is the way he bounces on top of the ladder if you keep pressing up.
B
8
S
1
G
1
Posts: 35
Reputation: 1,170

Post » Fri Aug 17, 2012 5:27 pm

@Plowman

You helped a lot. The "Platform is on floor" saved me a lot of time and variables :)

thanks
B
85
S
31
G
22
Posts: 384
Reputation: 18,587

Post » Sat Aug 18, 2012 6:48 am

Solved
B
85
S
31
G
22
Posts: 384
Reputation: 18,587


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests