ostincoolston
Member
So I found this code in the tileset scripts. I added it like this. Tile Collision 13-Routines\UserScripts\PlatformGame_Base\TileScripts\playerDeath.asm
I've been fiddling around with it trying to get it working. When I change nothing the player just disappears and the game appears to keep running on the same screen, no player, no respawn. When I change things it most often prevents me from being able to compile and play it. One change I made, not sure what caused the player to stop moving and lose all inputs and was just stuck there like it was stuck in a solid. Can anybody dissect this code and figure out how to get it to be just a normal death block on the Platforming Module?
Code:
CPX player1_object
BNE isNotPlayerDeath_forTileCollision
LDA Object_type,x
JSR HandlePlayerDeath
JMP donePlayerDeath_forTileCollision
isNotPlayerDeath_forTileCollision
;;; if monster runs into spike
DeactivateCurrentObject
donePlayerDeath_forTileCollision:
I've been fiddling around with it trying to get it working. When I change nothing the player just disappears and the game appears to keep running on the same screen, no player, no respawn. When I change things it most often prevents me from being able to compile and play it. One change I made, not sure what caused the player to stop moving and lose all inputs and was just stuck there like it was stuck in a solid. Can anybody dissect this code and figure out how to get it to be just a normal death block on the Platforming Module?