Invalid set index 'flip_h' (on base: 'null instance') with value of type 'bool'. This is the error,this is the code:

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

func _ready():

$Sprite.visible = false
$Props.frame = 0

1 Like
:bust_in_silhouette: Reply From: kidscancode

flip_h doesn’t appear in this code.

Regardless, “null instance” means that you are attempting to access flip_h on an invalid node. Typically this is because you have the name or path wrong.

$Sprite.flip_h = true

Would give this error if there were no child node named “Sprite”.

PS - you can format your code using the “Code Sample” button at the top of the input form on this site.