You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked the Issues/Discussions pages to see if my issue has already been reported
I have properly named my issue
Platform
Itch.io (Downloadable Build) - Windows
Browser
None
Version
0.5.3
Description (include any images, videos, errors, or crash logs)
If you make script for changing the strumline's position depending on difficulty, the hold note cover splash animation doesn't update its position if you change the difficulty through the pause menu.
8mb.video-A66-AEbDELjJ.mp4
Steps to Reproduce
Make a script in a mod that changes the strumline's position depending on the difficulty.
Change to the previous difficulty after the strumline's position has been changed through the pause menu.
Here's the code to save your time.
importfunkin.play.PlayState;
importfunkin.play.song.Song;
importflixel.FlxG;
importfunkin.util.Constants;
classhighLiveVocalSongextendsSong {
functionnew() {
super('high-live-vocal');
}
functionupdateStrumlinePos() {
varplayerStrumline:FlxSprite=PlayState.instance.playerStrumline;
varopponentStrumline:FlxSprite=PlayState.instance.opponentStrumline;
if (PlayState.instance.currentChart.difficulty=="normal") {
if (opponentStrumline!=null) for (arrowinopponentStrumline.members) arrow.visible=false;
if (playerStrumline!=null) playerStrumline.x=FlxG.width/2-playerStrumline.width/2;
} else {
if (opponentStrumline!=null) for (arrowinopponentStrumline.members) arrow.visible=true;
if (playerStrumline!=null) playerStrumline.x=FlxG.width/2+Constants.STRUMLINE_X_OFFSET;
}
}
overridepublicfunctiononSongLoaded(e) {
super.onSongLoaded(e);
updateStrumlinePos();
}
overridepublicfunctiononSongRetry(e) {
super.onSongRetry(e);
updateStrumlinePos();
}
}
The text was updated successfully, but these errors were encountered:
Most likely it's because you don't also do the same for state.playerStrumline.noteHoldCovers.members (tho it should be all together imo if you use playerStrumline.x and not be separate for members)
Also would recommend removing the public statements, and export ScriptedSong instead of Song
I'll follow your advice as a temporarily fix until I don't have to do this workaround lol @Starexify Also why are you recommending me to remove public statements and extend ScriptedSong instead of Song?
I'll follow your advice as a temporarily fix until I don't have to do this workaround lol @Starexify Also why are you recommending me to remove public statements and extend ScriptedSong instead of Song?
Because in haxe the public key is not required (it's not java and also it's default on public) and the ScriptedSong is the one that is used by Polymod normally (but somehow the basic ones work) so it's just suggestion mostly
Issue Checklist
Platform
Itch.io (Downloadable Build) - Windows
Browser
None
Version
0.5.3
Description (include any images, videos, errors, or crash logs)
If you make script for changing the strumline's position depending on difficulty, the hold note cover splash animation doesn't update its position if you change the difficulty through the pause menu.
8mb.video-A66-AEbDELjJ.mp4
Steps to Reproduce
Here's the code to save your time.
The text was updated successfully, but these errors were encountered: