How do I make an object increase or decrease in scale/size for each collision with other objects?

0 favourites
  • 5 posts
From the Asset Store
220 Food Sprites in 16x16 pixel size. Perfect for items for a retro style game.
  • Hi, (I'm new to Construct3)

    I'm trying to build a simple game in which I have an object in the middle of the screen and "enemies" are randomly generated and aimed at the object. Upon colliding with the object, the "enemies" are destroyed. I want to set up a way to have the object shrink in size every time an "enemy" collides with it. If the "enemies" are clicked on, then they are destroyed and the object remains intact. Any guidance would be appreciated. Thanks!

  • Is this just for a visual effect? You can use Sine or Tween behavior to change scale.

    Enemy on collision with SomeObject
    	Enemy Tween (two properties) Size to (0,0)
    	Wait 1 second
    	Enemy destroy
  • Thanks so much for your reply, Dop2000! I had tried what you suggested prior to posting here, the problem is that the object shrinks right away and even if I increase the time, the object still continues to shrink even if enemies are not colliding with it. I just want the object to decrease in size a small percentage every time an enemy collides with it and for the object to not continue to shrink unless other enemies collide with it.


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • So shrinking is part of the game mechanics? See this demo:

  • Yes, exactly! Thank you so much. I've learned the behaviors and how to do events, but I need to get better at instance variables. Thanks again!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)