x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.15
Tags:
more ▼

asked Sep 25 '18 at 07:19 AM in Blueprint Scripting

avatar image

FramersVR
3 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
  • 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.

more ▼

answered Sep 25 '18 at 07:40 AM

avatar image

Everynone
15.2k 77 26 62

avatar image FramersVR Sep 25 '18 at 08:32 AM

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

avatar image Everynone Sep 25 '18 at 10:05 AM

Just to give you an idea of what I mean:

alt text

alt text

Image from Gyazo


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

alt text

alt text

scale.png (147.3 kB)
t1.png (34.4 kB)
timline2.png (53.3 kB)
t2.png (30.9 kB)
avatar image FramersVR Sep 25 '18 at 05:12 PM

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!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question