My problem in the tutorial //v//

hey I have this slightly strange problem that I do what the tutorial tells me but I get a line in red and I don’t see how to solve the truth if I’m following everything step by step, I know it may be something very basic but still up to now I don’t care I see some solution

extends Area2D

export var speed = 400 #this
var screen_size

You are using an old tutorial written for Godot 3.x with Godot 4.x

Use a newer tutorial that uses the same version of Godot that you are using.

2 Likes

You are trying a Godot 3 code in Godot 4, which doesn’t always work without certain modifications. Use @export instead of export.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.