Im very new to Godot and GDScript so this might just be a mistake on my half but it seems that the Input feature is not working in a curtain function.
Here's my script :
extends Spatial
func _ready():
pass
func _on_Invisble_Collision_Door_Room_YOU_body_entered(body):
if body is KinematicBody and Input.is_action_just_pressed("interact"):
$anim1.play("DoorOpen")
pass
I have got rid of the imput part of the script Input.is_action_just_pressed("interact")
and it works just fine with collisions but Input isn't working in the func.
BTW, Indents are there in the code.
Anyone has any help, it is very appreciated.
Joe.