AnimatedSprite: afegit setAnimationSpeed()
This commit is contained in:
@@ -246,4 +246,10 @@ void AnimatedSprite::loadFromAnimationsFileBuffer(const AnimationsFileBuffer &so
|
||||
// Pone un valor por defecto
|
||||
setWidth(frame_width);
|
||||
setHeight(frame_height);
|
||||
}
|
||||
|
||||
// Establece la velocidad de la animación
|
||||
void AnimatedSprite::setAnimationSpeed(size_t value)
|
||||
{
|
||||
animations_[current_animation_].speed = value;
|
||||
}
|
||||
Reference in New Issue
Block a user