0 votes

extends KinematicBody2D
var speed = 1

Declare member variables here. Examples:

var a = 2

var b = "text"

Called when the node enters the scene tree for the first time.

func physicsprocess(delta):
if Input.iskeypressed(KEYS):

asked Jan 14 in Engine by ZombieGame007 (25 points)

1 Answer

0 votes
Best answer

You need to indent the line after:

if Input.iskeypressed(KEYS):

This means that you should press tab before the nect line so that it becomes like this:

if Input.iskeypressed(KEYS):
answered Jan 14 by johnygames (1,489 points)
selected Jan 15 by ZombieGame007

I had indented it and it still did so.

Nvm, I got it! Thanks for the henp! Take my upvote

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.