Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | BornoutofCorebit | |
Old Version | Published before Godot 3 was released. |
The code that isn’t working is below:
extends RigidBody2D
func _enter_tree():
set_fixed_process(true)
func _process(delta):
if Input.is_key_pressed(KEY_SPACE):
set_mode(0)