NOTE:
This is a preview of the content. To access the individual nodes and download the project files, you must buy the course.

Area2D

Detects when things enter and exit it

Use it when

You want to create a perimeter that warns you when objects enter or exit it

Examples

  • Attaching a hurt box to a character so it can take damage
  • Attracting coins to the player when in range
  • Opening a chest when standing next to it and pressing a button
Go to guide

Camera2D

Controls what's on-screen in a 2d scene

Use it when

You need to control the game view, make the view follow an entity, zoom in and out, or shake the screen

Examples

  • Making the view follow the player character with or without an offset
  • Shaking the screen when the player takes a hit
  • Zooming the view in and out to keep multiple entities on screen
Go to guide

CharacterBody2D

Lets you code custom character movement

Use it when

You want to create a character or enemy that collides with the game world and moves in a specific way

Examples

  • Coding a side scroller character that can stomp enemies
  • Making your character stand on moving platforms
  • Creating a top down character that can push objects
Go to guide

GPUParticles2D

GPUParticles2D draws textures to create visual effects

Use it when

You want to create an explosion, fire, smoke, or other visual effects.

Examples

  • Creating dust puffs when a character lands on the ground
  • Making a torch or campfire with flames
  • Creating a trail behind a character moving fast
  • Making a special attack charging effect
  • Creating a healing beam
Go to guide

Line2D

Line2d draws lines

Use it when

You need to draw lines, curves, or trails in your game.

Examples

  • Creating a trail for bullets or projectiles
  • Drawing a trajectory for a homing missile
  • Creating a tether between two objects
  • Drawing a path for a character to follow
Go to guide

RayCast2D

Fires a ray that detects collisions

Use it when

You need to detect if and where a line intersects with physics bodies

Examples

  • Firing a laser beam that splashes on impact or that mines resources
  • Giving a line of sight to an enemy
  • Making an enemy or NPC detect obstacles in its path and steer around them
Go to guide
Site is in BETA!found a bug?