You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I am making a game combining multiple popular tower defense games (like BTD6, Tower Blitz or Aether Rush). I want it to be semi-retro style, so I want snappy animations. Here’s an example.
robloxapp-20240114-1846076.wmv (239.8 KB)
- What is the issue? Include screenshots / videos if possible!
When I play the animations, it’s all fine. The problem is with the transitions. When it switches animations, there is a fadetime for some reason.
For exemple in this video, the shooting animation plays and it is snappy, but when it attempts to transition to the idle state, there is a fade in. It’s clearly visible when buying the bottom path third upgrade. I want to have 0 linear movement.
(The janky animations are intentional by the way)
robloxapp-20240114-1835177.wmv (5.5 MB)
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried integrating the animationTrack:Play(0.01) solution I saw in a post having the same problem. I have a function to play an animation at a set speed. The other arguments are for stopping any other animations.
function playAnim(playedAnim, speed, stop1, stop2, stop3, stop4, stop5, stop6, stop7)
playedAnim:Play(0)
playedAnim:AdjustSpeed(speed)
if stop1 then stop1:Stop(0) else return end
if stop2 then stop2:Stop(0) else return end
if stop3 then stop3:Stop(0) else return end
if stop4 then stop4:Stop(0) else return end
if stop5 then stop5:Stop(0.01) else return end
if stop6 then stop6:Stop(0.01) else return end
if stop7 then stop7:Stop(0.01) else return end
end
Works fine, one animation plays and the others stop. I set all play and stop parameters to 0.01, and then 0. There’s still a fade in, so that’s not good. All my animations are played through this function, so that’s certainly the problem.
Any help would be very appreciated! Thank you all again.