Animating 2D effects (smoke, sparks) for games

Our video game development company runs independent projects, jointly creates games with the client and provides additional operational services. Expertise of our team allows us to cover all gaming platforms and develop an amazing product that matches the customer’s vision and players preferences.
Showing 1 of 1 servicesAll 242 services
Animating 2D effects (smoke, sparks) for games
Medium
~3 business days
FAQ
Our competencies
What are the stages of Game Development?
Latest works
  • image_games_mortal_motors_495_0.webp
    Game development for Mortal Motors
    663
  • image_games_a_turnbased_strategy_game_set_in_a_fantasy_setting_with_fire_and_sword_603_0.webp
    A turn-based strategy game set in a fantasy setting, With Fire and Sword
    859
  • image_games_second_team_604_0.webp
    Game development for the company Second term
    490
  • image_games_phoenix_ii_606_0.webp
    3D animation - teaser for the game Phoenix 2.
    533

2D Effect Animation (Smoke, Sparks)

2D effects — smoke, sparks, fire, explosions, magical flashes — transform mechanics into sensation. Hit without effect — button press. Hit with proper flash, scattering sparks, and dust cloud — physical interaction. Game feel is largely built on 2D effects, even in 3D games.

Creating 2D effects for games is balance between expressiveness and performance. Beautiful effect from 200 sprite frames kills mobile dashboard. Too simplified — doesn't give right feeling.

Two approaches: frame-by-frame and particle

Frame-by-frame (sprite) animation — each effect frame drawn by hand. Artist fully controls shape, color, movement. Result — expressive, stylized effects with clear artistic character. Used in games with vibrant 2D style: fighting games, action-roguelite, anime-style RPG.

Sprite animation is more expensive in production (each frame drawn) and runtime (texture memory). Typical explosion: 12–24 frames at 24fps, frame size 256×256 or 512×512. Atlas 4×6 = 24 frames in one 2048×2048 texture — standard for TexturePacker.

Particle system with 2D sprites. Particle System in Unity generates particles with given parameters — start size, lifetime, velocity, color, emitter shape. Each particle — sprite from atlas (spark, smoke ball, star). Performance better than frame-by-frame — one particle texture used hundreds of times.

Limitation: particle effects harder to make stylistically accurate. Smoke from particles looks like "smoke from particles." For high-art games frame-by-frame preferable.

Combination. Most professional effects — combination: sprite animation for main element (explosion, flash), particle system for secondary details (flying sparks, smoke trail). This approach gives frame-by-frame expressiveness with reasonable load.

Technical requirements for 2D effects

Sizes and PPU. Effect should have same PPU (pixels per unit) as rest of scene assets. If characters in game are 32 PPU, attack effect too should be 32 PPU — otherwise with scaling effect wrong size.

Pivot point. For effects attached to point (hit, explosion) — pivot at collision point. For effects from character (fireball from hand) — pivot at emission point. Wrong pivot — effect "jumps" when playing.

Transparency and blending mode. Smoke, fog, aura — Alpha Blending mode. Fire, lightning, magic effects — Additive blending (brightness adds to background, effect glows). In Unity this is Material setting (Sprites/Additive vs Sprites/Default). Wrong blending: fire with alpha blending looks like opaque spot instead of glowing effect.

Effect color language. Game should have system: fire of red character — warm shades, ice of blue — cold, poison — green. Not just aesthetics — readability in battle. If all characters effects one color, player distinguishes attacks in chaos.

Smoke animation: technical breakdown

Smoke — one of hardest frame-by-frame effects. Technically correct smoke:

  • Grows from bottom up with expansion (expand over lifetime)
  • Changes shape irregularly — not symmetrically
  • Semi-transparent with gradient fade on edges (not hard edge)
  • Fades, not cuts — last frames maximally transparent

In Spine or After Effects smoke built through FFD or Puppet deformation of base shape. In particle system — Texture Sheet Animation with several smoke forms in atlas + startRotation random + rotationOverLifetime for drift effect.

Typical mistake: smoke drawn symmetrically moving evenly — looks mechanical. Asymmetric forms and random rotation — mandatory parameters.

Sparks and particle scatter

Sparks on sword hit — classic effect with clear rules:

  • Direction: scatter mostly opposite to hit direction (reflection)
  • Lifetime: short, 0.2–0.5 seconds
  • Velocity: high initial, with gravity and drag for falling
  • Color over lifetime: bright white → yellow → orange → transparent
  • Shape: thin elongated sprites (not round dots)

In Unity Particle System: Emission burst (10–20 particles instantly), Shape = Cone (narrow angle in hit direction), Velocity over Lifetime with gravity modifier, Color over Lifetime gradient.

Production stages

  1. Style reference — effect style matching game visual
  2. Keyframe blocking — key poses/states for frame-by-frame
  3. In-between — intermediate frames
  4. Color and transparency — gradient fades, blending mode
  5. Export to atlas — TexturePacker, correct PPU settings
  6. Engine test — pivot, timing, blending
Effect type Count Timeline
Simple particle effects (3–5 types) 3–7 days
Frame-by-frame effects (explosion, attack, death) 5–10 effects 2–4 weeks
Full effect set for character 15–25 effects 4–8 weeks

Cost determined by effect count and complexity, plus stylistic requirements.