Bucket Mouse
Active member
EDIT: DANGIT, I POSTED THIS TOO SOON....further bug-testing revealed that if you warp to a second screen, another you will appear at the warp spot. The script draws you twice if you didn't just come from a cutscene screen, but if you eliminate the CreateObject part, you don't reappear at all -- you're gone forever. DALE HELP
This is doHideHudAndSpritesOnSpecialScreens.asm. It's located in Game/Subroutines.
I've added a third Screen Flag here; it removes the player sprite on a specific screen when checked. To use it, just simply replace the regular ASM with this one, then open Project Settings and change the name of Screen Flag 2 to Hide Player.
If you have to ask what the use of this is, then you haven't tried to make a cutscene yet. I am working on adapting the "Simple autotext/cutscenes" script for 4.5. You'll see it soon if I can get it to work.
This is doHideHudAndSpritesOnSpecialScreens.asm. It's located in Game/Subroutines.
I've added a third Screen Flag here; it removes the player sprite on a specific screen when checked. To use it, just simply replace the regular ASM with this one, then open Project Settings and change the name of Screen Flag 2 to Hide Player.
If you have to ask what the use of this is, then you haven't tried to make a cutscene yet. I am working on adapting the "Simple autotext/cutscenes" script for 4.5. You'll see it soon if I can get it to work.
Code:
;;;;;;;
;;;;;;;
;; UNDER WHAT CONDITION SHOULD WE HIDE SPRITES?
LDA ScreenFlags00
AND #%10000000
BEQ doNotTurnOffSprites
HideSprites
JMP doneWithExtraScreenCheckForSprites
doNotTurnOffSprites:
ShowSprites
doneWithExtraScreenCheckForSprites:
LDA ScreenFlags00
AND #%01000000
BEQ doNotTurnOffHud
HideHud
JMP doneWithExtraScreenCheckForHud
doNotTurnOffHud:
ShowHud
doneWithExtraScreenCheckForHud:
LDA ScreenFlags00
AND #%00100000
BEQ doNotTurnOffPlayerSprite
LDX player1_object
DestroyObject
JMP doneWithPlayerSprite
doNotTurnOffPlayerSprite:
LDX player1_object
CreateObject newX, newY, #$00, #$00
doneWithPlayerSprite:
doneWithExtraCheck::