Ladders, ladders, ladders everywhere

Get help using Construct 2

Post » Sun Sep 16, 2012 1:23 pm

Hello,

I'm trying to make a 2D platform level with two kinds of animations for the player when climbing a ladder.

I'm using this example
http://www.scirra.com/forum/search_results_posts.asp?SearchID=20120916131140&KW=Ladder


I've created two layers, one with a ladder and the player,
and one layer on top, with an other ladder.
Basically I want to do this (i will post a picture of my evensheet) :

When the player climb the ladder on the main layer (up or down) : Set animation to ClimbBack (you see the player back, he is on top of the ladder)
&
When the player climb the ladder on the layer on top (up or down) : Set animation to ClimbFront (The ladder is on top of the player so you see his face behid the ladder)





(sorry for my english)

If you can help me it's cool ^^
B
4
Posts: 7
Reputation: 789

Post » Sun Sep 16, 2012 2:09 pm

"One does not simply can create animation for ladder..."

I got the same issue, would be interested to know about it too
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Sun Sep 16, 2012 2:28 pm

Without a CAPX I'm not able to help you with a sample file, because draw these things are too much tie expensive =\

Well, it's very easy.

When player is overlapping ladder, set instance variable "Ladder" to yes and check if this variable is NO for all the common controls, making only the up/down commands work when in purpose.

Also, you'll need to make various checks to make sure it will be smoothly like you want.

and don't forget to make the collision polygon are of the stair to be one 1 or 2 pixels of width and aligned on the center, with the height being on the bottom and going to the top.
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,211
Reputation: 18,473

Post » Tue Oct 09, 2012 10:34 am

Thanks a lot for your help,
and sorry for the delay ^^
B
4
Posts: 7
Reputation: 789


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, gregorysforster, onzephyr and 2 guests