How do I platforms on layers with paralaxx

Get help using Construct 2

Post » Sun Apr 12, 2015 1:39 am

IM playing with the idea of having platforms on 2 different layers with paralax. one has layer fx of a blur.

the idea is when the character jumps to the back paralaxed layer he becomes blurred too.

it looks cool, but when i jumps there is some kind of positioning problem...i guess because the platform at back has a slighty different positioning due to paralax.

so i need to find a way to offset his position when he goes back so that his position doesnt get offset

I know i could solve this just adding an FX ot the character and turn it on and off but would be good to know how to do it properly...maybe using layertoCanvas or canvas to layer is a solution but need more info on what are the right properties to tweak

thanks
B
6
Posts: 23
Reputation: 277

Post » Sun Apr 12, 2015 11:44 pm

Hi,

Maybe you can test the following things:

- add a sprite (call spritetestback)on top of the back platform
then
on player overlapping "spritetestback" at offset x ---> (action) move object (player) to layer "fx"
else ---> (action) move object (player) to layer "origin"
Image Image
B
19
S
10
G
125
Posts: 867
Reputation: 64,937


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, arien, cjbruce, ColombageEnPLS and 13 guests