Looping of character sing and strumline confirm animations on hold notes #2894
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now, whenever the player or CPU/NPC hit a hold note, the character corresponding to that player and the strumline which the note belongs to will now play their sing and confirm animations respectively on "loop".
This used to be a feature in funkin versions prior to 0.3 but has been lost due to the re-write of how the game renders, stored and uses hold notes, but with this re-implementation, this lost feature has been revived into the new engine, with the added bonus of animation loop rates not being song BPM dependent but instead being a constant value that determines at what frame of the animation it should loop back to the starting frame.
Note:
At line 448 of
Strumline.hx
, theholdConfirm
function has been commented out as its functionality was replaced with the newplayConfirmHold
function, however the function declaration forholdConfirm
was left in the code-base as I do not have any idea if the presence of that function call is critical for the game's function, therefore anything related to that function was not tinkered with, but if decided that the function should no longer have a use in the code-base, I made sure that it could be removed without worry of breaking other functionalities.Untitled.mp4