Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timeSinceLastAnimation = timer.getTimeSinceLastAnimation();
- //Apply delay
- if (currentClip < this->nClips && timeSinceLastAnimation >= delay * 1000) {
- //Apply FPS cap
- if (animationRateTimer.getTimeSinceLastAnimation() >= 1000 / fps) {
- currentClip++;
- animationRateTimer.start();
- }
- } else {
- if ((timeSinceLastAnimation >= delay * 1000)) {
- timer.start();
- currentRepeat = 0;
- }
- currentClip = 0;
- currentRepeat++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement