[FEATURE/ENHANCEMENT] Set Character Event
Requires https://github.com/FunkinCrew/funkin.assets/pull/164 for this to work properly!
Briefly describe the issue(s) fixed.
- This PR aims to add a new song event where you are able to change the desired character mid-song!
- A new function
loadCharacter(charId:String, charType:CharacterType, ?swap:Bool = false)is made to have the ability to easily add the characters and swap them within your mods. - Also made some cleaning of the code in
initCharacters()
‼️ THIS WILL BREAK MODS THAT USE CharacterType‼️
Include any relevant screenshots or videos.
https://github.com/user-attachments/assets/a153c273-294e-4bd0-801d-65738b04598f
FINALLYYYYYY I'VE WAITED AGES FOR NATIVE SUPPORT ON THIS
FINALLYYYYYY I'VE WAITED AGES FOR NATIVE SUPPORT ON THIS
lolol hopefully this gets accepted so you can finally be happy
Now closes https://github.com/FunkinCrew/Funkin/issues/5269 :D
FINALLYYYYYY I'VE WAITED AGES FOR NATIVE SUPPORT ON THIS

(from https://github.com/FunkinCrew/Funkin/pull/5000#issuecomment-2852487823)
Not sure why it broke but whatever
WHEN IT ADDED IT?!?
This and its associated PR (#4663) are interesting. I'll have to review these and see how much rewriting needs to be done as more work gets done on asset preloading reworks.
EDIT: I had a barebones, kinda-working version at one point but I don't know where that went, and your implementation seems more mature anyway.
Just to add onto this what if you were able to change the x and y coordinates too? It could be useful in modding I think since some characters don't always fit with particular stages and they always have to be adjusted