From f6d9d29181e8a448fab4d6af2cba250408581c6a Mon Sep 17 00:00:00 2001 From: Abnormal <86753001+AbnormalPoof@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:04:43 -0500 Subject: [PATCH] add angle too bc why not --- source/funkin/data/stage/StageData.hx | 8 ++++++++ source/funkin/play/stage/Stage.hx | 1 + 2 files changed, 9 insertions(+) diff --git a/source/funkin/data/stage/StageData.hx b/source/funkin/data/stage/StageData.hx index 6fb6a8caf5..56fd9ebd8d 100644 --- a/source/funkin/data/stage/StageData.hx +++ b/source/funkin/data/stage/StageData.hx @@ -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; }; diff --git a/source/funkin/play/stage/Stage.hx b/source/funkin/play/stage/Stage.hx index 04a2a2ae47..ec58607bf6 100644 --- a/source/funkin/play/stage/Stage.hx +++ b/source/funkin/play/stage/Stage.hx @@ -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.