So, I'm trying to figure out how to specifically target certain objects and or tiles with certain scripts, in particular, scripts that set user variables... anyone figure out how to do this ?
For example, I have a script for weapons pickups that is reusable for each different weapon pickup
Ie
Lda room
Cmp#$01
Beq weapon 1
Cmp #$02
Beq weapon w
Thing is, how do I call a user variable on the fly at any point in the game efficiently, in this instance, the user var room ?
For example, I have a script for weapons pickups that is reusable for each different weapon pickup
Ie
Lda room
Cmp#$01
Beq weapon 1
Cmp #$02
Beq weapon w
Thing is, how do I call a user variable on the fly at any point in the game efficiently, in this instance, the user var room ?