Moving Scale of Object

I’m a beginner so this is probably a very simple question:

I set up a lerp animation where an object’s scale gets bigger on begin overlap, and then when there is an end overlap, the “reverse” is activated, making the object smaller.

But now, I want to activate the get bigger and smaller autonomously–on awake, a lung-like object gets bigger for three seconds, and then smaller by itself, and then bigger again, etc. rhythmically.

How do I begin to do this with blueprint scripting? I looked up youtube videos on autonomously moving platforms, but none seem to quite get what I’m looking for.

  • make the timeline track sinusoidal and set the timeline to loop (check the top row in the timeline editor)
  • or create a custom event that fires on timeline finish and restarts the timeline
  • or play the timeline forth an back
  • or use Set Timer by Event to cyclically restart it

All of these should work well.

Wow, thank you so much for this kind and thorough response!
These sound great, and I look forward to trying them out.

Just to give you an idea of what I mean:

Image from Gyazo


Or like this, which is by far the simplest way imaginable:

2 Likes

This is an amazing answer. Thank you so much–I feel like I learned so much from your response. I didn’t know you could loop the timeline. Cheers!