0 votes

func _ready():

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

Godot version 3.2
in Engine by (70 points)

1 Answer

0 votes

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.

by (21,930 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.