setFacingFlip and animation undefined
I don't know why it's doing this. Is there something I need to import?
Why is what doing what? :D You might want to include a few more details.
Sorry, I know this isn't detailed. I don't know why I posted it.
I'm following the tutorial on the site for Sprites and Animation but I get errors at
setFacingFlip(FlxObject.LEFT, false, false);
setFacingFlip(FlxObject.RIGHT, true, false);
animation.add("lr", [3, 4, 3, 5], 6, false);
animation.add("u", [6, 7, 6, 8], 6, false);
animation.add("d", [0, 1, 0, 2], 6, false);
just look at those red squiggles
Am I missing something in the imports?
Also the error is that they're undefined? I said that already in the title?
To what class are you adding those? It should be
Enemey.hx, and those classes have to extend
FlxSprite- this has nothing to do with imports.
You can check out the source code for the completed game if you're stuck at any point:
Yeah, that was the problem, thank you so much!