Resize between two points

Get help using Construct 2

Post » Thu Nov 15, 2012 11:49 am

I want a sprite to scale Up and scale down between two points: Top:(WallUP) and Bottom of Layout: (WallDown)

On Top, the sprite (Car) should be 50%. Middle of the layout it should be 75%. Bottom it should be original size, 100%.

Could you please fix the file and send it back please?
Last edited by meman on Sat Jul 05, 2014 6:58 pm, edited 1 time in total.
B
5
Posts: 43
Reputation: 403

Post » Thu Nov 15, 2012 12:28 pm

scale = lerp(0.5,1.0,t)
t = unlerp(BottomY, TopY, Car.Y)
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Nov 15, 2012 4:19 pm

Thanks very much, but could you give simpler instructions please. I am new to construct. What events and actions?
B
5
Posts: 43
Reputation: 403


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 1 guest