(SOLVED) (4.5.9) (ArcadePlatformer) Song when Triggered Screen

Subotai

Active member
Quick question,

When the screen is triggered, the song for TriggeredDay screen doesn't work. It continue to play the Normal song.
2021-11-14_20-18-21.png

This is a boss screen, when the boss die. It gives a price. When the player touch the prize, it trigger the screen, and after that, it warps to the same screen. But the song is always the same. Even if the player leave the screen and come back. The text message is functionnal for Day Info and Triggered Day info.

Am I the only one that have this problem ?
 

dale_coop

Moderator
Staff member
The load screen data script only loads the normal day song:
Code:
    LDY #178
    LDA (collisionPointer),y
    STA temp
then plays it, if the value is set.

You could check if triggered and if is is, try loading another data (the triggered song might be stored at #179).

So maybe replacing the 3 lines of code with those:
Code:
    GetTrigger
    BNE +triggered
        ;; normal screen song data:
        LDY #178
        LDA (collisionPointer),y
        STA temp
        JMP +continue
    +triggered:
        ;; triggered screen song data:
        LDY #179
        LDA (collisionPointer),y
        STA temp
    +continue:

(writing that, without testing... not sure if it would work of if the data is actually at 179)
 

Subotai

Active member
Bonjour Dale,

yes it works.
I don't know why it wasn't already there.

Thanks for your help Dale. You're the best.
 

dale_coop

Moderator
Staff member
Glad it worked !
Haha, a lof of things have not been implemented in those modules 4.5
I think Joe didn't have enough time for that.
 

karikas

New member
I had a different issue tonight where I needed to suppress an autotext tile when the screen was triggered... a variation on your code did the trick Dale! Even learning "how do I check if the screen is triggered" is tricky business. Thanks!
 
Top Bottom