How do I make my character climb a platform?

Get help using Construct 2

Post » Fri Jul 29, 2016 9:11 pm

I wanna make my character climb the wall like in the img below:
Image
How do i do it?

Thx o/
B
11
S
2
Posts: 7
Reputation: 834

Post » Fri Jul 29, 2016 9:34 pm

@FraktalZero managed to that. Can consider him as the specialist.
how-do-i-do-climb-down_t178823?&hilit=climb
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Jul 30, 2016 12:52 pm

lol Thanks 99Instances2Go but you meant I managed to go through all the pain :D
@Findu you are using the platformer behavior or you would like to do it the way old school cinematic platformers did it?
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Sun Jul 31, 2016 12:38 am

Well i don't think i understand the question but i'll try to answer, haha. I made 2 sprites, to make the character. One with only the img of the animations, and the other that i will order to do the actions i want. In this i put the platform behavior. But i tried to do this that i wanted, but i failed haha. I am trying to see the link above, to see if i can do it but it's a little "harder" than i think haha
B
11
S
2
Posts: 7
Reputation: 834

Post » Sun Jul 31, 2016 1:13 am

you can post your capx file and I can guide you. I had it done in two different parts, the actual climbing up and then the climbing down. Similar to Prince of Persia, or even the image you showed from Nosferatu (which was an awesome game too!)
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Sun Jul 31, 2016 1:46 am

I erased everything that i tried because it didn't work. How can i even start that?
And u say a img of the caps or the file .capx? Dunno how to put the .capx file here, but can put the img, haha
B
11
S
2
Posts: 7
Reputation: 834

Post » Sun Jul 31, 2016 1:54 am

Just in case...this is my capx:
Image
B
11
S
2
Posts: 7
Reputation: 834

Post » Sun Jul 31, 2016 1:20 pm

you can add your capx file on google drive or dropbox.
But if you wanna try it before. The logic behind it is that you need a helper object placed in the corner of walls.

And you need a new helper object attached to your Player controller object. I think yours its called Personagem if I'm right.

So when its falling, it will have to detect that you are pressing the input and that its this new object its overlapping the one attached to a wall.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Sun Jul 31, 2016 2:51 pm

This might help you get a start:
In this .capx file you have the basic concept . A helper sprite detects the ledge sprite, and if input is down, then we disable platform as long as input is being held.

In this case I didn't add the possibility of falling. Which would be on:
On Input released --> set playerDetect Platform Enabled

Now, animations when climbing will have to follow at an offset from playerDetect.ImagePoint(0).

This is just the beginning so if you need more help don't hesitate.


Also, the reason why I asked if you wanted to replicate that game exact movement is because in games like Prince of Persia, flashback, Nosferatu etc, they use a grid like movement which is different. I have somewhere a small capx file replicating that sort of movement as well.



https://drive.google.com/file/d/0B27TG57JCwl_Q2RpSmJOcDlMRUk/view?usp=sharing
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Sun Jul 31, 2016 6:02 pm

Well thx a lot, i will try this, and then i come back here to tell if i could do it or not =)
Thx again for your help o/
B
11
S
2
Posts: 7
Reputation: 834

Next

Return to How do I....?

Who is online

Users browsing this forum: dand, mageekm, oosyrag, Yahoo [Bot] and 31 guests