Animator now can apply transforms using the timer alpha which mostly works.

This commit is contained in:
Zed A. Shaw 2026-01-28 00:29:39 -05:00
parent 7f14a39edf
commit 785d0240da
4 changed files with 29 additions and 31 deletions

View file

@ -64,8 +64,8 @@ namespace animate2 {
ease2::EaseFunc easing = ease2::in_out_back;
ease2::MoveFunc motion = ease2::move_rush;
float twitching(Sequence& seq);
void lerp(Sequence& seq, sf::Vector2f& pos_out, sf::Vector2f& scale_out);
float twitching(Sequence& seq, float alph);
void lerp(Sequence& seq, sf::Vector2f& pos_out, sf::Vector2f& scale_out, float alpha);
};
/* Gets the number of times it looped, and returns if it should stop. */
@ -94,7 +94,7 @@ namespace animate2 {
void apply(sf::Sprite& sprite);
void update_frame();
void update();
void motion(sf::Vector2f& pos_out, sf::Vector2f& scale_out);
void motion(sf::Vector2f& pos_out, sf::Vector2f& scale_out, float alpha);
};
}