forked from jaildesigner-jailgames/jaildoctors_dilemma
Arreglado un bug en la eleccion aleatoria de frame de los enemigos
This commit is contained in:
@@ -88,6 +88,12 @@ void AnimatedSprite::animate()
|
||||
}
|
||||
}
|
||||
|
||||
// Obtiene el numero de frames de la animación actual
|
||||
int AnimatedSprite::getNumFrames()
|
||||
{
|
||||
return (int)animation.at(currentAnimation).frames.size();
|
||||
}
|
||||
|
||||
// Establece el frame actual de la animación
|
||||
void AnimatedSprite::setCurrentFrame(int num)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user