How To

i need help with code for music


GAMELEGEND 2020-11-05 13:15 (Edited)

i have the music

but i dont know how to play it
i dont know how to stop it
i dont know how to do any of this crap

i went through the manual but that didnt help

i have always struggled with this music crap for some reason

was8bit 2020-11-05 17:06

This is an example for creating little sound effects and quick riffs...

This is part 1of3 for making a full piece of music

Timo 2020-11-05 17:09

But actually you only have to use the MUSIC command to play the main music (if you use the standard file #15 for music)

Timo 2020-11-05 17:10

GAMELEGEND, you can post your music NX file here and we make it play.

GAMELEGEND 2020-11-05 20:12

This is the music

Tester.nx | Open in app
2020-11-05 20:12

Timo 2020-11-05 21:44

Here it is :)

Tester 2.nx | Open in app
2020-11-05 21:44

GAMELEGEND 2020-11-05 22:54 (Edited)

OH COME ON it was that easy XD


GAMELEGEND 2020-11-05 23:04 (Edited)

so for example
if it was MUSIC 0
and then the player entered a new area i would just change the 0 to what ever pattern i need to play right?

Timo 2020-11-06 08:55

The parameter of the MUSIC command says at which pattern the music should *start*. A song usually has more than one pattern, so it will continue playing. If you want to have a song with an end or a loop, you have to set it in the Sound Composer (the toggle button with "stop", "loop start" and "loop end").

Log in to reply.