How do I grow and shrink a sprite quickly

Get help using Construct 2

Post » Fri Apr 03, 2015 11:54 am

I've searched forums but can't seem to find exactly what I need.

I have an object which uses the drag drop behaviour. Once the object is in a certain position, drag drop is disabled and effectively locks the object into place and cannot be moved again, and then plays a sound.

Once the object is locked into position (and drag drop disabled) I want the object to briefly shrink in size (20% of original size) and then grow back to its original size. All done in under one second.

How is this possible?. Here's what my event looks like

Image
B
4
Posts: 19
Reputation: 238

Post » Fri Apr 03, 2015 1:09 pm

every tick > set size > Self.Width-X, Self.Height-X
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
58
S
13
G
2
Posts: 283
Reputation: 6,330

Post » Fri Apr 03, 2015 1:47 pm

Thanks, that helped but Is there anyway to actually shrink over x amount of time (0.2 sec), gradually getting smaller to the set size or set scale specified?. Then gradually growing again over 0.2 sec back to original size?.

Otherwise it looks too quick, I want more, smoother movement.

EDIT: Just found the sine behaviour wich seems more what I need. Still can't work out how to shrink the image initially (over 0.2 seconds) and then have it grow back over 0.2 seconds to original size.
B
4
Posts: 19
Reputation: 238

Post » Fri Apr 03, 2015 4:00 pm

Check out the LiteTween plugin. LiteTween
B
15
S
5
G
7
Posts: 877
Reputation: 5,650


Return to How do I....?

Who is online

Users browsing this forum: ladjuric, mekonbekon, Romalex360 and 7 guests