@@ -299,8 +299,10 @@ class StrumLine extends FlxTypedGroup<Strum> {
299299 * Creates a strum and returns the created strum (needs to be added manually).
300300 * @param i Index of the strum
301301 * @param animPrefix (Optional) Animation prefix (`left` = `arrowLEFT`, `left press`, `left confirm`).
302+ * @param spritePath (Optional) The sprite's graphic path if you don't want the default one.
303+ * @param playIntroAnimation (Optional) Whenever the intro animation should be played, by default might be `true` under certain conditions.
302304 */
303- public function createStrum (i : Int , ? animPrefix : String ) {
305+ public function createStrum (i : Int , ? animPrefix : String , ? spritePath : String , ? playIntroAnimation : Bool ) {
304306 if (animPrefix == null )
305307 animPrefix = strumAnimPrefix [i % strumAnimPrefix .length ];
306308 var babyArrow : Strum = new Strum (startingPos .x + ((Note .swagWidth * strumScale ) * i ), startingPos .y );
@@ -310,7 +312,8 @@ class StrumLine extends FlxTypedGroup<Strum> {
310312 babyArrow .scrollSpeed = data .scrollSpeed ;
311313
312314 var event = EventManager .get (StrumCreationEvent ).recycle (babyArrow , PlayState .instance .strumLines .members .indexOf (this ), i , animPrefix );
313- event .__doAnimation = ! MusicBeatState .skipTransIn && (PlayState .instance != null ? PlayState .instance .introLength > 0 : true );
315+ event .__doAnimation = playIntroAnimation == null ? (! MusicBeatState .skipTransIn && (PlayState .instance != null ? PlayState .instance .introLength > 0 : true )) : playIntroAnimation ;
316+ if (spritePath != null ) event .sprite = spritePath ;
314317 event = PlayState .instance .scripts .event (" onStrumCreation" , event );
315318
316319 if (! event .cancelled ) {
0 commit comments