yep, exact... the constant value should be 255.
(In my game over, I display my player... he's spawned between walls of solid blocks)
But if you want something, better
- in every input scripts you would like to disable... add this code at the begining:
Code:
;; if on the GAME OVER screen
LDA currentScreen
CLC
CMP #GAME_OVER_SCREEN
BNE +
RTS ;; skip the code
+
- to make him disappear... modify the script assigned to the "Handle Sprite Drawing" element in the "Project Settings > Script Settings".
And after the "objectNotDeactivated:" line, add this block of code:
Code:
;; hide player when screen-type 255
CPX player1_object
BNE +
LDA currentScreen
CLC
CMP #GAME_OVER_SCREEN
BNE +
RTS
+