SoulBlayzR
New member
Hey everyone, it's me again. So I'm trying to implement a chest system in my game, so that when you touch a chest, it plays a cutscene and adds to the item score.
I've done all that, but I now need help getting rid of the chest after the fact. I'm still a noob in ASM, not shy to admit that at all. It would be nice if I got some help with this.
The way this works is that the chest itself is a sprite. The actual magic happens with two "player victory" blocks behind it, which warp the player to another room. After it's all done, I want both the blocks and the sprite gone without a trace.
See here
[media]https://youtu.be/6HnvzQ4f080[/media]
Scripts I used:
Warp to Screen AI Action
Open textbox AI Action
I've done all that, but I now need help getting rid of the chest after the fact. I'm still a noob in ASM, not shy to admit that at all. It would be nice if I got some help with this.
The way this works is that the chest itself is a sprite. The actual magic happens with two "player victory" blocks behind it, which warp the player to another room. After it's all done, I want both the blocks and the sprite gone without a trace.
See here
[media]https://youtu.be/6HnvzQ4f080[/media]
Scripts I used:
Warp to Screen AI Action
Code:
LDA warpMap
adc #$00
STA temp
GoToScreen warpToScreen, temp, #$02
Open textbox AI Action
Code:
;; activate the text-box
LDA gameHandler
ORA #%00100000
STA gameHandler
LDA #%10000000
STA textboxHandler