;; get offset
LDA Object_x_hi,x
STA temp1
LDA Object_y_hi,x
STA temp2
;; get offset
LDA Object_x_hi,x
CLC
ADC #$04 ;;<<-- horizontal offset of your weapon from your monster (change the value to adjust)
STA temp1
LDA Object_y_hi,x
CLC
ADC #$04 ;;<<-- vertical offset of your weapon from your monster (change the value to adjust)
STA temp2
dale_coop said:Currenlty the script looks like:
toCode:;; get offset LDA Object_x_hi,x STA temp1 LDA Object_y_hi,x STA temp2
Code:;; get offset LDA Object_x_hi,x CLC ADC #$04 ;;<<-- horizontal offset of your weapon from your monster (change the value to adjust) STA temp1 LDA Object_y_hi,x CLC ADC #$04 ;;<<-- vertical offset of your weapon from your monster (change the value to adjust) STA temp2
LDA Object_x_hi,x
;;; offset x for creation
CLC
ADC #$04 ;;<<-- horizontal offset of your weapon from your player/monster (change the value to adjust)
STA temp
LDA Object_y_hi,x
CLC
ADC #$04 ;;<<-- vertical offset of your weapon from your player/monster (change the value to adjust)
STA temp1