Hi guys, i have make an animation where a guy hit the ground with a punch. BUT, i need insert smoke when his Hand hit the ground How i can insert this effect to an animation?
How i can give an Effect to an Animation?
1 answer
Hey, there are plenty of ways to do this, let me map it out for you.
You are able to use GetMarkerReachedSignal, this will require a bit of effort if it's your first time doing it and you'll have to use multiple functions to properly map it out, such as AddMarker, RemoveMarker and GetMarkers. Simply reading the wiki on them will answer most of your questions.
Once you have that set up, listen to the event and add the smoke to the character's hand at the appropriate time.
If that doesn't work for you, you can try Polling.
Polling isn't the most reliable or efficient way of doing it, but it's simpler to set up and use.
Just use a repeat until the animation reaches the desired time, you can check the time by using AnimationTrack.TimePosition.
A little example:
repeat wait() until anim.TimePosition == 0.5
-- add smoke
This discussion is preserved as it was. New answers, comments, and votes are closed.
