Script Detection Error

It says in the console that there is no Enemy 3 Script but at the top in the tabs and in the Enemy3 components there is an Enemy 3 Script.

What does line 7 in that script look like?

sprite.set_hflip(“/Enemy3”, true)

That’s what’s not being found, not the script itself. sprite.set_hflip is as the name implies used to flip sprites and not game objects (which it looks like you are trying to do in your snippet). Try “#Enemy Normal” instead.

1 Like

I didn’t know there was a way to flip a game object, how would I do that?

You can’t. In some circumstances though setting x scale to -1 might have the desired effect.

That worked, thank you!

1 Like