generated from ShadowMario/FNF-PsychEngine
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a4df45
commit bf44720
Showing
10 changed files
with
844 additions
and
1,854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package backend.animation; | ||
|
||
import flixel.animation.FlxAnimationController; | ||
|
||
class PsychAnimationController extends FlxAnimationController | ||
{ | ||
public var followGlobalSpeed:Bool = true; | ||
|
||
public override function update(elapsed:Float):Void { | ||
if (_curAnim != null) { | ||
var speed:Float = timeScale; | ||
if (followGlobalSpeed) speed *= FlxG.animationTimeScale; | ||
_curAnim.update(elapsed * speed); | ||
} else if (_prerotated != null) { | ||
_prerotated.angle = _sprite.angle; | ||
} | ||
} | ||
} |
Oops, something went wrong.