Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

That was way better than I expected with "small demo". I'm not sure how I was doing (I'd probably have died in two seconds if I could have), but that was ALMOST a game. The art was good, it had music, it had sound effects, the controls were responsive.. it even has a menu with volume control (which I always want to make in my entries, but always gets cut). 

I specially liked the cactus attacks. It shots spines. Of course.

 

Hello angelab! Thanks for playing and the kind words! If you want I can share my volume control thingy with you, it's pretty simple and you can just copy/paste it in projects. I only used it twice, but I should get a habit of including it in all my jam games I think.

It's embarassing I called it Needlemancer but the actual name for them is spines... ^^

(+1)

Hey! Sure! I always like to look at other people's code. If you want to take a look at any of mine, the source is linked in the submission for the jam ;)

About the name, if it makes you feel better, I didn't know if "needle" was a common word for the thingies, or just word-play for the title, and I had to look up the proper name for them xD.

You just need a slider going from -24 to 0 value wise (you can use a different range, I like that one which was used in the tutorial I followed). Then you connect the value_changed signal to a script running this code:

func _on_VolumeSlider_value_changed(value):
    if value == -24:
        AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), true)
    else:
        AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), false)
        AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"), value)

You need to tweak the buses if you want to use different ones for music and sound effects. This will affect the master volume. Enjoy!