diff options
author | groud <gilles.roudiere@gmail.com> | 2018-04-26 21:08:21 +0200 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@laas.fr> | 2018-05-07 18:53:06 +0200 |
commit | 89fe7e2f925e7a62ec2d77ebafaf123aaa88442b (patch) | |
tree | 59a0c6cff447c5ae2b2498716967ebdad192027e /scene/2d/animated_sprite.h | |
parent | e5a13e26265179d9d6b477c6d744758521745123 (diff) |
Adds a speed factor to AnimatedSprite
Diffstat (limited to 'scene/2d/animated_sprite.h')
-rw-r--r-- | scene/2d/animated_sprite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/animated_sprite.h b/scene/2d/animated_sprite.h index c7606d88aa..7b91a1faef 100644 --- a/scene/2d/animated_sprite.h +++ b/scene/2d/animated_sprite.h @@ -129,6 +129,7 @@ class AnimatedSprite : public Node2D { bool playing; StringName animation; int frame; + float speed_scale; bool centered; Point2 offset; @@ -172,6 +173,9 @@ public: void set_frame(int p_frame); int get_frame() const; + void set_speed_scale(float p_speed_scale); + float get_speed_scale() const; + void set_centered(bool p_center); bool is_centered() const; |