How do I make an image change its size in the game

Just started using Construct 2? Post your questions here

Post » Wed Apr 20, 2016 1:15 pm

How do I make an image change its size in the game from all sides.
for example when my progress bar is maximum a sprite is spawned ( instead you could say a ring is formed ) and grows and kills all the monsters. will someone please tell me how to do that. I could send an image if someone told me how to!
B
3
Posts: 1
Reputation: 177

Post » Wed Apr 20, 2016 4:48 pm

Put all of your Monsters into a family called "Family_Enemies".

Give the ring an instance variable called "Scale"(number) give it the value of the starting size of scale you want it to be when spawned.

and another instance variable called "Grow"(Boolean) set the value to true

Create a condition:
Ring > Is OnScreen > System >Set Scale > Ring.Scale

Create another dual condition:

Ring > On Created > Ring Add .02 to Ring.Scale
Ring > Grow(is true)
__(Sub Event) Ring.Scale =(or greater to) 5.0> Ring > Set Grow to False
______________Ring.Scale > Ring.Scale to 5.0 or (Destroy) or (Fade)

Create another condition:

Ring > On Overlap > Family_Enemies> Destroy Family_Enemies
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest