How to:

Get help using Construct 2

Post » Thu Feb 09, 2012 10:20 pm

It is probably a simple task but I just need to do this:

Sprite on collision with object - scale down in size from 100 to 0.
Not jump from 100 to 0, but shrink down so you see it shrink.

I'm sure it's an easy one for someone. I'm just not finding it though.

Thanks for help.
B
6
S
2
G
4
Posts: 12
Reputation: 2,810

Post » Thu Feb 09, 2012 10:25 pm

set width to lerp(self.width,0,5*dt)
set height to lerp(self.height,0,5*dt)Yann2012-02-09 22:26:11
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Feb 09, 2012 10:26 pm

Nija'd by yann ;) I love lerp!
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Thu Feb 09, 2012 10:27 pm

And I'm happy it's not the other way around
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Feb 09, 2012 10:31 pm

@Yann, Haha Do I do that often?
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Thu Feb 09, 2012 10:36 pm

Thanks, that's working great. I just replaced "on collision with object" to "is overlapping object" and it works smoothly.

Thanks for the tip!
B
6
S
2
G
4
Posts: 12
Reputation: 2,810

Post » Thu Feb 09, 2012 11:17 pm

@smitchell
dunno I don't keep stats :D
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Feb 09, 2012 11:18 pm

@Yann,
I'm pretty competitive you know I will make it my lifes mission to ninja you as much as possible now! lol.
B
29
S
12
G
7
Posts: 740
Reputation: 7,849


Return to How do I....?

Who is online

Users browsing this forum: Televangelist and 25 guests