My "Run Program" Window Won't Respond

Godot 4.2.1

When I try running my game in the “run program” window immediately has (DEBUG) at the top, and won’t respond, even after letting it load for a couple minutes.

I’m very new to Game development and I’m not used to programming, or Godot yet, so I’m not sure what’s going on. There are no error markers in the my script, so I’m not sure what the hang-up is

Any ideas?

Question

try the other one on different scene, when you press Run Project, it runs from main scene you have assigned, so try run it on other scene by :
image

It might be just your main scene is filled with infinite loop, but usually it results in stack overflow by that, unsure what happen there without showing your codes or scene tree at least

if it also wont run on any other scene, then something is wrong with your editor

here’s what ive got. I’m just following a tutorial.


extends CharacterBody2D


@export var speed = 300
@export var  gravity = 30
@export var jump_force = 300

func _physics_process(_delta):
	if !is_on_floor():
		velocity.y += gravity
		if velocity.y > 1000:
			velocity.y = 1000
	if Input.is_action_just_pressed("Jump"):
		velocity.y = -jump_force
		
	var horizontal_direction = Input.get_axis("move_left","move_right")
	
	
	
	velocity = 300 * horizontal_direction
	
	move_and_slide()
	
	print(velocity)

the code doesnt look like have any problem to cause the not responding
did it print anything on Output dock?
because you have print(velocity) there

actually got it fixed! Just left off a colon :sweat_smile: