mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-09 05:24:39 -04:00
add angle too bc why not
This commit is contained in:
parent
ff56b1948a
commit
f6d9d29181
2 changed files with 9 additions and 0 deletions
source/funkin
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue