- Home /
Can I play an animation with only 1 image for a duration?
Hello. I was fussing with this for quite a while. I have an animation for a sprite that is only one image. I would like it to be my attack animation, and I want it to play for around a full second. No matter what I do, it only barely is on long enough to catch a mere glimpse of what it looks like. I reset the exit time for the animation, which only allowed me to almost always see a glimpse of it. I also tried to adjust the speed of the animation. I even tried to extend the time by placing the idle image at the point where I want the character to switch to idle. I tried to set the animation to a trigger, and removed the code that might override it, and now I don't even see it attempting to animate. I am just completely lost on what to do. Please help?
Originally, the code was as follows:
public void Attack()
{
Animator.Play("Attack");
}