Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
DrowzyBomber13

Music ending when player dies?

Recommended Posts

I wanted to make the player play a song when they die, and I was wondering if there was a way to make the music for the level turn off when the player dies, and reactivates when they restart the level. Any help would be great.

Share this post


Link to post
16 minutes ago, DrowzyBomber13 said:

What would that look like? I'm not very familiar with this stuff

image.png.29b1b630d1503d4cf3fb02751ec6fc3a.png

This is what I did.

Share this post


Link to post
9 minutes ago, Geckertim said:

image.png.29b1b630d1503d4cf3fb02751ec6fc3a.png

This is what I did.

Mine isn't working. Do I name it "SNDINFO" in the wad or what do I name it? Sorry, I'm a terrible programmer

Share this post


Link to post

It's ACS, it's not SNDINFO. This would normally go in your map's scripts (you can do that from the map editor). If your map is in a format that doesn't allow scripts, there's a workaround but it's more complicated.

 

The so-called Hexen format and UDMF both allow scripts. The so-called Doom format doesn't. If your map is in Doom format, you have to set your script through a library instead.

Share this post


Link to post
7 minutes ago, DrowzyBomber13 said:

Mine isn't working. Do I name it "SNDINFO" in the wad or wha do I name it? Sorry, I'm a terrible programmer

This goes in the scripts document for your map. You can access it through Doom Builder's script editor or by opening the wad for your map in Slade.

Here is the scripts document in the wad for my map:

image.png.c3aea86d55ac88c0185bb60f0d9d83ee.png

After writing the script, save the document, then click the blue arrow to compile it:
image.png.774e233e535671b1b012eeef0fd36c0d.png

Hopefully this helps!

Share this post


Link to post
2 minutes ago, Geckertim said:

This goes in the scripts document for your map. You can access it through Doom Builder's script editor or by opening the wad for your map in Slade.

Here is the scripts document in the wad for my map:

image.png.c3aea86d55ac88c0185bb60f0d9d83ee.png

After writing the script, save the document, then click the blue arrow to compile it:
image.png.774e233e535671b1b012eeef0fd36c0d.png

Hopefully this helps!

Do I copy it down for every map or is there a way to mass allow it?

Share this post


Link to post
1 minute ago, DrowzyBomber13 said:

Do I copy it down for every map or is there a way to mass allow it?

I believe you'll need to copy it for each individual map, but I'm not sure.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×