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 gold and add more of them. In _ready, set the Burst's color to amber, Color(1, 0.78, 0.34), and its amount to 60. Press E to see it.

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
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Game Feel

Practice on your own: Godot playground