Warp as a Layer Effect

For questions about using Classic.

Post » Wed Jun 06, 2012 5:39 pm

I've got water in my game on its own layer, and am using the Warp effect on that layer to give an illusion of movement and turbulence. Looks great when you stand still, but as the camera moves, so too does the Warp effect. It seems linked to the camera, and that gives the illusion of faster turbulence in the water when the camera moves.

The water speeds up when you move, and slows back down when you remain stationary.

Is there a way to make the layer effects independent from the camera? Or perhaps a better way of warping things in a specific area?
B
15
S
7
G
7
Posts: 250
Reputation: 5,298

Post » Wed Jun 06, 2012 5:48 pm

When you apply an effect to a layer, that effect will always work in screen space, not object space. That's why you have the impression of it being linked to a "camera".
You could try to compensate the camera speed by adding/subtracting it to/from warp's speed by an appropriate factor, but that's right from my head without having actually tested it.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Wed Jun 06, 2012 7:23 pm

Would I be able to apply a Warp effect to a box then?

Say, place a box over the water, and have a Warp effect affect everything inside the box, on that layer only. I don't want it to warp the player as well when he's in the water though.
B
15
S
7
G
7
Posts: 250
Reputation: 5,298


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests