![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | pixel.anas |
when i try to run the game it shows me this error: Invalid call. Nonexistent function ‘is_action_persede’ in base ‘InputDefault’.
this is the code that i am using:
extends KinematicBody2D
var speed = 3
func _physics_process(delta):
if Input.is_action_persede("ui_right"):
position.x += speed
pass
if Input.is_action_persede("ui_left"):
position.x -= speed
pass
if Input.is_action_persede("ui_up"):
position.y -= speed
pass
if Input.is_action_persede("ui_down"):
position.y += speed
pass
pass
sorry for bad english
You don’t need to write pass if you have any code in the function body. And please mark exuin’s anwser as right.
EnrikeChurin | 2021-08-19 14:16