Scale a sprite using an other sprite as reference

Get help using Construct 2

Post » Sun Feb 09, 2014 10:08 pm

Hi,
I wounder if there is a possible way to scale a (player)sprite using a black and white value from a another sprite.

Imagine two layers with a sprite in each layer.
The layer at top is the player sprite and the bottom is the scale reference.

The scale reference has a gradient of black and white.
White being at front and black being in the back.
A depth pass.

I want the player sprite, when it's on top of this scale reference / depth pass to scale according to the color value it's on top of.

White=1= 100% in scale
Black=0= 0% in scale.

How do I set this up?
B
5
Posts: 8
Reputation: 249

Post » Sun Feb 09, 2014 11:18 pm

You'll need that Canvas plugin:
GradientBasedScaling.capx

Canvas
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sat Feb 15, 2014 5:40 pm

Thanks allot, I will check that out!
B
5
Posts: 8
Reputation: 249


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests