Lother
Member
So I'm creating a script for a tile that only let non players object go through it but I've encountered a strange thing:
The block is effective when it comes to horizontal movement, but the vertical movement isn't blocked at all.
Here's my script for now:
How can I fix it ?
The block is effective when it comes to horizontal movement, but the vertical movement isn't blocked at all.
Here's my script for now:
Code:
CPX player1_object
BNE +blockPlayer;; skip player block if a monster
LDA ObjectUpdateByte
ORA #%00000001
STA ObjectUpdateByte ;; makes solid
+blockPlayer:
How can I fix it ?