And if possible how to add proximity audio to the game
Proximity audio is actually 100% possible in Makecode! The main issue is that the normal music and sound players themselves don’t support it, so it would have to be a JavaScript project or you would need an extension.
1 sound source would be extremely easy (just change the system volume lol), but if you want multiple sources you would have to either do something fancy by editing the default instruments, like have one version of the instrument that you use for all the sounds playing from one source and another instrument that’s the same but for the other source, and then you update that instrument’s volume with distance.
That might work if you really wanted to use the default music creator, but if you wanted to use something else (like manually playing every sound, or maybe you only want proximity sound effects and not music) then that might be easier, though I believe since notes are loaded into a buffer and then played, you wouldn’t be able to make a single long note change volume over time after you started playing it, so that might make the sounds a little weird if you quickly move away from the source. The general thought is that if you make every sound any volume - you can - then you can make any sound fade with proximity!
If anyone wants more insight into how manually playing sounds works, here’s a short song I made and you can learn from the best by watching the mods create music this way on stream! Unfortunately, I couldn’t find the stream where they explained how it all works (I watched that one live and gave them the idea of playing completely random sounds, which was funny). If you find that stream, please share which one it was! It would be on the Makecode Arcade YouTube channel somewhere.
Ooo nicos-nextbots pretty hard idk
Well I’ve kind of already made a game that kinda seems like the game
I used a bit of Cyber’s Nexbot coding knowledge (Unfinished game sorry)
And two things
1.What extension would that be?
2.Do you have an example of adding proximity audio to a 3D game?
- Someone would have to make one.
- No, but I can’t imagine it would be that hard to do in JavaScript. In blocks there aren’t really so many options for controlling the volume of sounds, unless you use an extension that gives you access to the system menu stuff, which would let you control the overall volume, making single source noises easy.
actually what about the sprite-utils extension? couldn’t you make audio play when the nextbot is a certain amount of pixels close to you?
Apparently theres like something you cand do in Blocks that you make something sound at a certain range like at x and/or y
Bruv why
I have an idea. To all in this chat or to people to joined, edit my game, make it as good as possible, then send a link in the topic for the game, and I will rate versions. Make it fun, decorative and interesting if wanting to participate. Thanks!
YES BOYZZZZZ THATS MY PACKY12 bahahahhaha
Awee a was hoping for an update
Wdym update u want me to make the game better? Finish it off?
found this editing
Yeah ik i had said i used some of Cyber’s Nextbots coding to help me
Don’t mind it im going to make one fully made by me