Nonexistent function 'set_fixed_process' in base 'KinematicBody2D'

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jarlowrey

I was following the tutorial here. Using 3.0. Script is attached to a KinematicBody2D node. Script has the following code:

extends KinematicBody2D

func _ready():
	#set_process(true) #Works!
func _fixed_process(delta):

_fixed_process has been changed to _physics_process.
You also don’t need to do the set_x function calls anymore with godot 3.

acorn | 2018-01-31 04:00

:bust_in_silhouette: Reply From: volzhs

like what @acorn said, you need to use _physics_process not _fixed_process

You are looking at wrong version document.

look v3.0 document if you are using Godot 3.0

you can change document version from here

Ah I figured it’d be something like this. Thanks!

jarlowrey | 2018-01-31 13:53