Continuously scale an object from small size to large size

I have an asteroid object. I want to continuously scale it (keep enlarging it) from 1x1 pixel until it reaches 128x128 pixels. This will make the asteroid appear that is getting closer and closer to the game player. Is it better to do this with animation or with a scale condition/action? If using “scale” is possible, how would I do that? Thank you.

Surely there are many ways to do it out there :smiley:
You need a condition to start and keep increasing the scale, then resize only when such conditions are meet.

For example if you want to start resizing from the beginning of the scene, for 1 second:


Here I use 1*TimeDelta(), so it resize the object in 1 second, if you want to resize it in 3 seconds, set (1/3.0)TimeDelta() = 0.33TimeDelta() :wink:
The time to resize depends in the initial scale too (if the initial scale is big, the resize will be faster :stuck_out_tongue: ), but you will set an initial scale of 1 pixel, it approaches zero, so it will works fine :slight_smile:

Lizard-13, I tried your code in my game, and it worked perfectly. Exactly what I wanted. Thank you very much! :smiley: