diff options
-rw-r--r-- | Remove-Warp-Fadescreen.md | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Remove-Warp-Fadescreen.md b/Remove-Warp-Fadescreen.md index dc26d4b..3f180d7 100644 --- a/Remove-Warp-Fadescreen.md +++ b/Remove-Warp-Fadescreen.md @@ -4,6 +4,10 @@ credits to ghoulslash There might come a day where you want to fade the screen to black in a script and play a fanfare, print a message, or do something else, and immediately warp. If you try this in vanilla emerald, the screen will fade FROM black, and then back TO black. Instead, let's create a flag that removes the fadescreen part of the warp script commands and we can do something like this: +Before: After: + +<a href="https://imgur.com/1cDuh4f"><img src="https://imgur.com/lkYbY2N.gif" title="source: imgur.com" /></a> <a href="https://imgur.com/1cDuh4f"><img src="https://imgur.com/HdnnlF9.gif" title="source: imgur.com" /></a> + ### 1. Define a flag @@ -34,4 +38,21 @@ void WarpFadeOutScreen(void) FlagClear(FLAG_REMOVE_WARP_FADE); // reset flag internally } } -```
\ No newline at end of file +``` + +### 3. Use in a script! Here is the example in the GIF: +``` +VerdanturfTown_EventScript_Camper:: + lock + faceplayer + msgbox sText_1, MSGBOX_AUTOCLOSE + fadescreen FADE_TO_BLACK + setflag FLAG_REMOVE_WARP_FADE + msgbox sText_2, MSGBOX_AUTOCLOSE + warp MAP_RUSTBORO_CITY, 0, 0, 0 + end +``` + +The flag is cleared internally, so need to worry about that after warping! + +The flag is cleared internally
\ No newline at end of file |