Create a death title

winkdot

New member
Got some help on FB for this one. I wanted a death title so when the player touched it they died.

In Project Settings/Title Types changed type 11 to 11 - Death
Created a script called yourstuff\Nesmaker_4_0_11\GameEngineData\Routines\UserScripts\AdventureGame_Base\TileScripts called death-title.asm with the following code (this code already existed).

CPX player1_object
BNE npeddie
LDA Object_type,x

JSR HandlePlayerDeath
;JMP donePlayerDeath_forTileCollision
npeddie
;;; if monster runs into spike
DeactivateCurrentObject

donePlayerDeath_forTileCollision:


Under project settings/script settings - selected type 11 and hit change. Updated the type 11 to point to the new script. Routines\UserScripts\AdventureGame_Base\TileScripts\death-title.asm

Hope I have written this correctly.
 

dale_coop

Moderator
Staff member
Good job, another topic about that:
http://nesmakers.com/viewtopic.php?f=23&t=750&p=4683#p4683
 
Top Bottom