How do I layered effect for two possible roads.

Get help using Construct 2

Post » Mon Jul 11, 2016 2:53 am

Hello everyone!!

Well step explain.

1. I try to make a ladder layers are above the character to climb.
2. By ignoring these stairs the layers are behind the character.

I leave an image to be clearer.

And sorry if my English is very bad! XD

Image
B
5
S
1
Posts: 5
Reputation: 335

Post » Mon Jul 11, 2016 8:56 am

If you set your origin point of the stair rails to the bottom left corner, you can compare the Y position of the player (as well as overlapping the rails) and stairs rail to know when he should be in front or behind.

Basically if the player is overlapping the stair rails, but his Y position is the same as the stair rails or lower then he will be behind. If He is overlapping the rails and Y position is higher, then he will be in front.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Post » Mon Jul 11, 2016 6:11 pm

Thank you! great!!
My objective is done! Thank you very much for the help Sol~!!
:3
B
5
S
1
Posts: 5
Reputation: 335

Post » Tue Jul 12, 2016 2:35 am

Glad that you figured it out :D

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499


Return to How do I....?

Who is online

Users browsing this forum: farsen and 21 guests