Animated cpu2d particles?

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

I’m trying to make animated 2d particles in 3.1. The only option I’ve found is using AnimatedTexture, but all particles play same frame in same time, while ignoring both animation speed and offsets of particle node. Is there any other way to make frame particle animation?

:bust_in_silhouette: Reply From: kidscancode

The easiest way to do this is with a spritesheet containing the frames of your animation.

  1. Add the spritesheet to the Drawing/Texture property
  2. In CanvasItem/Material add a CanvasItemMaterialand set Particles Animation to “On” and Particles Animation HFrames/ Particles Animation VFrames appropriately for your spritesheet
  3. Set Animation Speed to control playback rate.