Repository navigation
How do you switch the stage and character mid song #1222
Replies: 1 comment 1 reply
|
These are two separate things in Codename Engine, and only one of them has a built-in event. Character: no script needed. In the Chart Editor, open the Events tab and add a Character Change event at the step where the swap should happen. Its parameters are Target (the strumline — 0 is the opponent, 1 is the player), Character Index, and New Character, plus Precache (leave it on, so the new character's assets are loaded ahead of time and the swap doesn't hitch). It also refreshes the health-bar icons for you. So if you want dad to become someone else halfway through the song, that's one event, no code. Stage: there is no equivalent event. The engine's built-in event list has no stage swap, and setting function swapStage() {
stage.stageSprites["stageA_bg"].visible = false;
stage.stageSprites["stageB_bg"].visible = true;
}The names in So: Character Change event for the character, one stage plus a visibility swap for the backdrop. |
Uh oh!
There was an error while loading. Please reload this page.
Making a chart and I wanted to switch the stage and the character, but there's no event (you should add one) and even if I write HScript code, it isn't very good
Plz help
All reactions