Menu
CoddyTech

Color and Amount

Part of the Game Feel section of Coddy's Godot journey. Lesson 14 of 23.

The same particle node can make very different effects. Most of the difference is the color and the number of particles.

$Burst.color = Color(1, 0.42, 0.42)
$Burst.amount = 100

color sets the color of every particle. This Burst also has a color ramp that fades each particle out at the end of its life. amount is how many particles the burst throws out.

Use big, bright bursts for big events and small ones for small events.

challenge icon

Challenge

Easy

Make the sparks amber, and more of them.

  1. In _ready(), set $Burst.color to Color(1, 0.78, 0.34).
  2. Set $Burst.amount to 60.

Press Play and press E: a bigger amber burst flies out. Then Check.

Try it yourself

extends Node2D

func _ready():
	$Thruster.emitting = true
	$Burst.one_shot = true

func _process(delta):
	if Input.is_action_just_pressed("action"):
		$Burst.emitting = true

All lessons in Game Feel

Practice on your own: Godot playground