Music won't play on a screen

dale_coop

Moderator
Staff member
Hmmm.... try that:
Edit your Handle Camera script, and around line 110, you should find a "STA ScreenFlags00" line followed by a "ReturnBank" line:
2023-01-11 17_39_53-● doUpdateCamera_shooter2.asm - Visual Studio Code.png

Between those 2 lines... add that code:
Code:
                        TYA
                        PHA
                        LDY #178
                        LDA (temp16),y
                        STA temp
                        CMP #$FF
                        BNE +skip
                            STA songToPlay
                            StopSound
                            JMP +skipSongs
                        +skip:
                        CMP songToPlay
                        BEQ +skip ;; already playing this song
                            PlaySong temp
                        +skip:
                        +skipSongs:
                        PLA
                        TAY

Should looks like that now:
2023-01-11 17_41_26-● doUpdateCamera_shooter2.asm - Visual Studio Code.png

Save and test... I think it should work.
 
Top Bottom