I just ran into a problem regarding setting a sprite to a enemy.
Let me explain my enemy and the game-view first.
The game is top down.
The enemy can walk → up, down, left, right.
The enemy can stand still.
So, I got the animations for the walking done…but…
How can I programatically set the SINGLE sprite when the enemy is standing still and looking into a single direction?
I read about loading the sprite from the ressources…but that would mean I have to move all sprites into a “Ressources” folder…
Isn’t there some other way to approach it?
Do I really have to create animations with just a single image so I can assign this in the Animator?
once again: Thanks for your help. Nice to see u around
So, basicly I will always need a Ressources folder…
Well, okay, fine… I’ll try to setup my games like that from now on
Edit
Okay, …can you maybe tell me how to deactivate the Animator logic?
I want the animator logic to work unless I want to use my single sprites…but it seems the animator always overwrites my single image sprite assignment
You need to disable the animator when you want to handle the sprite’s images yourself and then turn it back on once you need it to handle the animation. In your case it’s probably much better to create single frame animations and trigger them, instead of turning the animator component off and on again all the time.