![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | bgegg |
Does tab indent cause problems?
i get “Unindent does not match any outer indentation level” error.
https://i.imgur.com/35RN5wC.jpg
extends Node2D
var speed = 100
var vel = Vector2()
func _ready():
set_process(true)
func _process(delta):
vel = Vector2()
if Input.is_key_pressed(KEY_RIGHT):
vel = Vector2(speed, 0)
if Input.is_key_pressed(KEY_LEFT):
vel = Vector2(speed, 0)
translate(vel * delta)
Converting to space indent solved the problem.
However, space indents are not good looking.
Is there a way to solve it?
https://forum.godotengine.org/28306/error-unindent-does-not-match-any-outer-indentation-level
i try this tutorial, but problem is can not solved