How do I do climb down

Get help using Construct 2

Post » Tue Jul 05, 2016 8:23 pm

or rather, what would be the logic.

Let me explain:
I have a set up that works quite well for grabbing and climbing ledges.
My current system
http://vertexzero.tumblr.com/post/146506786218/testing-the-flow-during-the-past-weeks-ive-been

Now, I did the events for climbing down a ledge (think Prince of Persia climb up and down)
My problem is that when I go to ledgeDrop state, ggrabledge state is activated too, sort of playing both animations at the same time.

I'm using a sprite to control my animation, so I do a smooth climbing via Image Points if that can help.

So to come back to my question, should I rethink how I'm doing it?
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Tue Jul 05, 2016 9:20 pm

Your animations look really nice already it sounds like you need an else statement with the condition I was helping somebody with something and I ran into something kind of similar It could also be you need to wait for one of your states to be finished before moving into the next.

I could be completely misunderstanding your post If I am please correct me

This is the example I ran into

Image

This was the simple fix

Image

Hope this helps. If it doesn't please provide some screenshots of your code or a more in-depth explanation. Good luck with your project it's looking good :D
B
12
S
8
G
3
Posts: 33
Reputation: 3,483

Post » Tue Jul 05, 2016 11:04 pm

Sorry, I'm trying to figure out how I could use the same logic in my events.
My code is something like this:

https://www.dropbox.com/s/a5c5kw55jl0vwnt/01.PNG?dl=0

https://www.dropbox.com/home/C2_HELP?preview=2.PNG

For now is working like this:
http://66.media.tumblr.com/447323b36bc1eb37d5ae056281500cda/tumblr_o9v6e6IKjr1tlukx3o1_400.gif


I managed to get something better but it seems its actually not playing the animation and instead going right away to the next state.


I could live with it but I wish I could replicate what I did with the climbing up. i was trying to use the same animation but reversed.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Tue Jul 05, 2016 11:14 pm

the second link doesn't work I see what you mean by the animation being super quick.
B
12
S
8
G
3
Posts: 33
Reputation: 3,483

Post » Tue Jul 05, 2016 11:16 pm

FraktalZero wrote:Sorry, I'm trying to figure out how I could use the same logic in my events.
My code is something like this:

https://www.dropbox.com/s/a5c5kw55jl0vwnt/01.PNG?dl=0

https://www.dropbox.com/s/f1mzhgl76l73yok/2.PNG?dl=0

For now is working like this:
http://66.media.tumblr.com/447323b36bc1eb37d5ae056281500cda/tumblr_o9v6e6IKjr1tlukx3o1_400.gif


I managed to get something better but it seems its actually not playing the animation and instead going right away to the next state.


I could live with it but I wish I could replicate what I did with the climbing up. i was trying to use the same animation but reversed.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Tue Jul 05, 2016 11:17 pm

I dont know what happened but I just quoted myself lol.
Anyways, sorry about that, I fixed the second link.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Tue Jul 05, 2016 11:27 pm

I have a few questions
1. which order do those links execute in ?
2. I only see one animation being set in this code ledge drop?
3 is ledge drop the animation where he's crouching down or the animation where he's holding the ledge?
B
12
S
8
G
3
Posts: 33
Reputation: 3,483

Post » Tue Jul 05, 2016 11:34 pm

I inverted the order of images, sorry but normally within their group grab ledge is placed first.

Animations in ledge drop down are temporary, usually I place them in another event sheet and activated them via an instance variable.

Yes, drop off a ledge is supposed to be the animation that plays. Holding a ledge is grabbing. So right now when the Player drops down it activates the grabbing state.
I tried bypassing it but none of the solutions I came up with did the job.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Tue Jul 05, 2016 11:38 pm

I might have found the issue tell me if I'm wrong

in case the image doesn't scale well http://puu.sh/pRE6S/4162db2465.png
Image


wow that image is really hard to understand my bad I'll explain in detail instead so I think your input button down is completely skipping past your on animation finish because it's checking it every tick and because of this set is ledge drop is false when you let your button go
B
12
S
8
G
3
Posts: 33
Reputation: 3,483

Post » Tue Jul 05, 2016 11:49 pm

no, it didn't work, but in the debugger I can clearly see that the booleans for isGrabbing and isLedgeDrop are being activated at the same time.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Next

Return to How do I....?

Who is online

Users browsing this forum: beohs, Blendi1223 and 14 guests