Beginner Question - animating/keyframe over time?
This is a super beginner question...I have a particle system and I want to attach it to something that I can animate over time. For example, how do I do this:
That's it. Simple. Easy to do in Maya and such, why is it so hard in Unreal? lol Thank you in advance!
asked Nov 30 '15 at 09:34 PM in Blueprint Scripting
There is not an explicit translate function in Timelines, but locations in UE4 do use Vectors and Timelines can use the same thing.
The first step would be to make the blueprint for the sphere and create a timeline. When you create the timeline, open it up and add a vector graph. You can then name the graph whatever you want. If you wish to only make the sphere move in the Z axis, the next step would be to click the Eye icons beside the X and Y to hide those lines and only show the Z then add at least two keys by Shift-Left-Clicking on the graph. You can then set these keys to any time/value values that you wish. In my example, I used one key at 0 time and 0 value and a second key at 5 time (seconds) and 100 value. Be sure to check the "Use Last Keyframe" option.
After that, you can return to the Event Graph and start on the logic.
This is a very simple way to do this and there are certainly better ways but this will work for now. First I set up a variable to store the initial location of the sphere so we can avoid it starting from 0,0,0 when it gets moved. Next is to start the Timeline and hook it up to call "Set Actor Location" every time it updates the value from our graph. I then set it to add the output of that graph to the initial location variable from earlier to ensure that it moves from it's initial location instead of the world origin.
Edit: If the sphere doesn't move, you may gets some warnings in the output log. This is most likely a result of the Sphere being set to Static rather than Movable.
Hope this helps!
answered Dec 02 '15 at 03:16 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here