some fixes

This commit is contained in:
Yoshman29
2022-12-04 21:13:11 +01:00
parent 8628ab4bf5
commit c9468b031e
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
1380
1381
+1 -1
View File
@@ -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');
@@ -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;