Menu
CoddyTech

Process Runs Every Frame

Part of the Nodes and Scenes section of Coddy's Godot journey. Lesson 7 of 27.

Godot draws a new picture of the game many times a second. Each picture is a frame. This game runs at 60 frames a second.

_ready() runs once. _process() runs on every frame, so 60 times a second:

func _process(delta):
	position.y += 1

That moves the node 1 pixel down on every frame, so 60 pixels each second. The steps are tiny, so you see a smooth slide.

Leave delta in the brackets for now. The next lesson explains it.

challenge icon

Challenge

Easy

Make the robot slide right. Inside _process(), move it 2 pixels right on every frame.

Try it yourself

extends Node2D

func _process(delta):
	pass
quiz iconTest yourself

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

All lessons in Nodes and Scenes

Practice on your own: Godot playground