add angle too bc why not

This commit is contained in:
Abnormal 2024-10-17 10:04:43 -05:00 committed by Eric
parent ff56b1948a
commit f6d9d29181
2 changed files with 9 additions and 0 deletions
source/funkin
data/stage
play/stage

View file

@ -281,4 +281,12 @@ typedef StageDataCharacter =
@:optional
@:default(1.0)
var alpha:Float;
/**
* The angle of the character, as a float.
* @default 1.0
*/
@:optional
@:default(0.0)
var angle:Float;
};

View file

@ -458,6 +458,7 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
character.scrollFactor.y += stageCharData.scroll[1];
character.alpha = stageCharData.alpha;
character.angle = stageCharData.angle;
#if FEATURE_DEBUG_FUNCTIONS
// Draw the debug icon at the character's feet.