Not that I'm having any trouble, it's just I was wondering if anyone had any tips or things to improve my game. I can change the colours and text styles, and I will import some images, but if anyone has any ideas of how to make it more awesome please. And this isn't just for me - anyone could look at these things and learn something!
P.S.: I am using Harlowe.
Comments
Good idea!
Those are just ideas on how to polish the game, but when it comes to the actual gameplay - that really depends on the type of game or experience you're going for. @rubereaglenest said it best, get testers and get as much feedback as you can. You can never have too much feedback.
If you're using a library that sets volumes per sound effect, it's impossible without spending hundreds if not thousands on specialist decibal normalization software. This is why I'm only allowing music volume adjustments, because the SugarCube audio macros are volume per file and hence it is too difficult for me to adjust sounds globally.
The short answer is to use the following code:
Note that you'll have to change the codecs based on the type of audio file you are using.
The {} are used to remove any extra white space in your passages, and adding the type and codecs is optional, but I found it works better.
autoplay, loop, are pretty self explanatory - you may not want the sound to loop, but it depends on what you are planning to do.
The long version is a bit more complicated and depends on what you are planning to do exactly.
There are quite a few threads in these forums about audio so a quick search should provide some insights.
What do i paste into javascript?
How do I make a button instead of a link?
the howler.js file you can download it online here, after you download go to the dist folder, then open howler.js with a file editor like notepad ++ and then go to line 2133 Edit the line of code that reads:
define([], function() {
and change it to:
define('Howler', [], function() {
now select all and paste it your javascript everything should work fine
Thanks. I'll try that. What do i do in the dist folder?
how do i have multiple musics? when i put two in my music passage it doesn't work. i can only have one in the music passage.
music passage:
the stuff at the top is just some other stuff i needed in my startup passage, and the extra stuff in the <script> is supposed to stop music when another one starts. also, for some reason its not showing the src of the music but it is actually there.
how can i control the volume of music?
That said, I don't think it's a huge deal for simple games. A simple on/off switch should suiffice as that's usually what people are after. Someone concerned about sound probably just wants to turn it off completely, not adjust volume by 10%.
I can understand your viewpoint, but I generally regard volume controls as a lesser priority than other features.
thanks. do you know of a way to stop all music? and if i wanted two tracks, where would i put the second one, because putting two in one startup tagged passage makes neither of them for some reason.
Don't use two <script> tags, as your example up-thread shows. When you do so, you overwrite audio in the second.
Try something like the following: (I called the master stop function stopAllAudio())
Basic usage of stopAllAudio(): Within a (link-repeat:) macro:
Thank you so much!!! My game will be coming out very soon!
for some reason when i get to the passage when i want akbanan (short for AK-47 Banana) to start, it gives me an error message. I used the stopAllAudio() thing to stop the first one (whcih works perfectly thank you!), but it doesn't play the second one. sorry for asking so many questions about this and thanks for answering them
thanks, yeah i figured it out.