From eab1f8287595fceca9ae5d4f3ca8f35c3f3236a8 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 28 Jul 2024 16:55:41 -0400 Subject: [PATCH] update piratian movement --- Sprites/NPCs/piratian.asm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Sprites/NPCs/piratian.asm b/Sprites/NPCs/piratian.asm index 508e16f..18cdcbe 100644 --- a/Sprites/NPCs/piratian.asm +++ b/Sprites/NPCs/piratian.asm @@ -1,8 +1,9 @@ ; ========================================================= ; Sprite Properties ; ========================================================= + !SPRID = $0E ; The sprite ID you are overwriting (HEX) -!NbrTiles = 02 ; Number of tiles used in a frame +!NbrTiles = 02 ; Number of tiles used in a frame !Harmless = 00 ; 00 = Sprite is Harmful, 01 = Sprite is Harmless !HVelocity = 00 ; Is your sprite going super fast? put 01 if it is !Health = 00 ; Number of Health the sprite have @@ -110,6 +111,11 @@ Sprite_Piratian_Move: { LDA.w SprTimerA, X : BNE + JSL Sprite_SelectNewDirection + TYA + CMP.b #$03 : BCC ++ + SEC : SBC.b #$03 + ++ + STA.w SprAction, X + JSL Sprite_MoveXyz @@ -119,7 +125,6 @@ Sprite_Piratian_Move: JSL ThrownSprite_TileAndSpriteInteraction_long JSL Sprite_CheckDamageFromPlayer : BCC .no_dano - %GotoAction(1) %SetTimerA($60) %SetTimerF($20) .no_dano