baardbi
Well-known member
If you have cutscenes in your game with a lot of text, then it's a good idea to allow the player skip straight to the game if he has seen the cutscene a few times already. The problem with the default NESmaker setup is that if you just use a normal warp there's a big chance the text will continue to be written to the screen once you warp past the cutscene. Here's an input script that will let the player skip the cutscene (even in the middle of writing text to the screen) and start the level as normal.
Just save this file as skipCutscene.asm and include it in Input Scripts. Then assign it to the start button or whatever.
;;; Skip Cutscene
;;; Clear text queue
LDA #%00000000
STA textQueued
STA textHandler
STA gameStatusByte
STA updateScreenData
STA scrollOffsetCounter
JSR doWaitFrame
LDA gameStatusByte
AND #%11111110 ;;; Make sure object handling is enabled.
STA gameStatusByte
WarpToScreen warpToMap, warpToScreen, #$01
RTS
Just save this file as skipCutscene.asm and include it in Input Scripts. Then assign it to the start button or whatever.