Input handling

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sketxz
:warning: Old Version Published before Godot 3 was released.

I am trying to move the camera using the arrow keys but the _input and the _process functions have no effect.

func _process(delta):
    var curPos = get_node("Camera").get_transform()
    if Input.is_action_pressed("ui_up"):
        curPos.y += 1000
        get_node("Camera").set_transform(curPos)
:bust_in_silhouette: Reply From: PixelWizzard

Did you enable the input handling / processing in the _ready function?
You do this by using

set_process_input(true)

for enabling _input and

set_process(true)

for the _process function