Tween vs Animation player (PERFORMANCE)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GorEldeen

Hi, I’m making a game and i want everything to be smooth, But at the same time i dont want any lag spikes, Which is more performance consuming? Tween or Animation player node??

:bust_in_silhouette: Reply From: Mazen

AnimationPlayers are good when you have a complex animation that can be defined before the game runs, while Tweens are good when you need to define a simple animation at runtime, so it depends on ur animation, i believe defining the animation during runtime is less costy more like local variables