From c9468b031e14f99334299ac37683c1118af161a1 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sun, 4 Dec 2022 21:13:11 +0100 Subject: [PATCH] some fixes --- buildnumber.txt | 2 +- source/funkin/game/PlayState.hx | 2 +- source/funkin/scripting/events/StrumCreationEvent.hx | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/buildnumber.txt b/buildnumber.txt index de8746ce..d31692da 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1380 \ No newline at end of file +1381 \ No newline at end of file diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 3c417c45..d0a856f8 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -673,7 +673,7 @@ class PlayState extends MusicBeatState { // case "school": default: - babyArrow.frames = Paths.getSparrowAtlas('game/NOTE_assets'); + babyArrow.frames = Paths.getFrames(event.sprite); babyArrow.animation.addByPrefix('green', 'arrowUP'); babyArrow.animation.addByPrefix('blue', 'arrowDOWN'); babyArrow.animation.addByPrefix('purple', 'arrowLEFT'); diff --git a/source/funkin/scripting/events/StrumCreationEvent.hx b/source/funkin/scripting/events/StrumCreationEvent.hx index 290f3d47..4ef8a03e 100644 --- a/source/funkin/scripting/events/StrumCreationEvent.hx +++ b/source/funkin/scripting/events/StrumCreationEvent.hx @@ -21,6 +21,11 @@ class StrumCreationEvent extends CancellableEvent { */ public var strumID:Int; + /** + * Sprite path, in case you only want to change the sprite. + */ + public var sprite:String = "game/NOTE_assets"; + public function new(strum:Strum, player:Int, strumID:Int) { super(); this.strum = strum;