Belle_Grande
New member
I'm Trying to put in breakable blocks, but I cant get it to work. I've tried using the older script for it but I get the "Unknow Label" error on the line for "ChangeTileAtColission". I'm using the Adventure MOD. Any Help?
Please could you post the script you're using or/and the error message. If one of the arguments for the ChangeTileAtCollision is a variable that is not set up, or the same name as in 4.5.9 it could just be that that needs to be changed.
;;; SOLID
;;;This is how to inform a solid collision.
;;; You can also add this to the end of
;;; any tile type if you want it to have an effect AND
;;; be treated like solid.
;;; You could also check to see if it is a non-player object,
;;; and only return solid if it's a not player. This would
;;; cause monsters to treat things like spikes or ladder or fire
;;; as solid while the player is able to interract with it.
LDA #TILE_SOLID
STA tile_solidity
LDA Object_flags,x
AND #%00000100 ;; is it player magic?
BEQ +
;; destroy this block.
ChangeTileAtCollision #$00, #$00
PlaySound #SND_BREAK
; TriggerScreen screenType
+
;; if you want it solid, declare it at the end
Yea its says says ChangeTileAtCollision: label unknownAnd the error is for the ChangeTileAtCollision not the PlaySound?
Still same errorComment out the line :
PlaySound #SND_BREAK
Adding a ; at the begining of that line... like this:
; PlaySound #SND_BREAK