0 votes

enter image description here

in Engine by (14 points)

The image isn't expandable and it's too small to read any error. Maybe paste the error text directly?

toda vez que faço o codigo

extends Node2D

var move = Vector2 ()

func physicsprocess(delta)
if Input.isactionpressed ("uiright"):
move = 100
if Input.is
actionpressed ("uileft"):
move =100


aparece error(9,24) The method "moveandcollide" isn't declared in the current class

move_and_collide() is a KinematicBody method. Change extends Node2D to extends KinematicBody2D.

Also you'll get more errors with move = 100. move is a Vector2 so it needs to be something like move = Vector2(100, 0) or move = Vector2.RIGHT*100

Outro erro é
The argument (delta) is never used in the function 'physicsprocess'. If this intended prefix It with an underscore: '_delta'

Please log in or register to answer this question.

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.