Change size over time

Get help using Construct 2

Post » Sun Nov 10, 2013 4:16 pm

Hi guys, i have a part of my game where 2 npcs talk to each other with the clasic "comic bubble", right now the dialogs just shows up without any kind of transition but i want them to kinda pop up, with a transition from size 1x1 to their normal size.
I tried the sine but i didnt get how to make it go from one value to another and do it just 1 time.
Any behavior suggestion or tip on how to accomplish this?
Thanks!sinneruy2013-11-10 16:16:53
B
15
S
1
G
1
Posts: 15
Reputation: 1,051

Post » Sun Nov 10, 2013 4:36 pm

system compare two values - normal height > sprite.height
-- Sprite set height to sprite.height+1

system compare two values - normal width > sprite.width
-- Sprite set width to sprite.width+1

Every tick 1 is added to width and height.
This stops when normal size is reached.
should work with square sprites

Ofcourse you should define the values for normal width and normal heightLittleStain2013-11-10 16:38:32
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 11, 2013 2:50 pm

Thanks, that got me in the right path to doing it, i used the scale property and got it working.
Thanks again!
B
15
S
1
G
1
Posts: 15
Reputation: 1,051


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 7 guests