[4.5.2 Simple Game Over Screen

offparkway

Active member
I made a game over screen and a user constant called GAME_OVER_SCREEN. just trying to warp to it once myLives is 0 (rather than reset). I tried the code from an older 2019 thread, but it didn't seem to do anything.
 

dale_coop

Moderator
Staff member
Check the messages on the last page of that topic... you should find the answer:
http://nesmakers.com/viewtopic.php?p=26172#p26172
 

offparkway

Active member
Hey, that worked on the first attempt! Thanks Dale. How can I now adapt my hutWithLives script to work with hurt tiles? As it stands, the hurt tiles just do a reset.
 

dale_coop

Moderator
Staff member
You could modify/adapt the hurt tile script like this ( just call the doHandleHurtPlayer subroutine, that points to the script you already customized):
Code:
	;; check to see if object colliding is a player.
	CPX player1_object
	BNE dontDoTilePlayerHurt
	
	;; call the handle player hurt code:
	JSR doHandleHurtPlayer
	
dontDoTilePlayerHurt:
 
Top Bottom