CrudeMik's Forum Posts

  • Anyone got any funny bug videos of their games?

    I just found this happened in Orbit while making a video: http://youtu.be/xR6BChvIBhk

  • Thanks!

    By range I mean the audible distance. Actually I think you made it as roll-off rate. The rate at which it fades from quiet to full volume. Some emitters I'd want to cover a large area and some would be small.

    It's not the web audio API that's limited, the API is able to do amazing things including reverb, doppler, filters, delays etc - the problem is that only Google Chrome currently supports the API and Scirra don't want to have two versions of the audio object.

    I'm gagging for the day to have access to the rest of the API functionality within construct.

    Maybe I should offer out my ?50 again....haha

  • I've worked out a mixing solution, I have one line of code for each sound which lets me mix the levels it's fine.

    This is nearly perfect the only other thing I'd like to do (within the current limitations of the engine) - is to adjust the ranges for each sound independently. Is this possible within this fantastic solution?

    If you're ever in Cambridge I'll buy you a pint!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can use Linear damping to slow down motion over time, between 0 and 1

  • Just played it, nice sprites, colours etx

  • That's a brilliant way of doing it, so much simpler than all my code! haha thanks for having a look at it.

    I modified the code to say emitter.soundFile = "sound" set volume to volume -10db as a way of mixing. This doesn't work with ranges though. So I'm not sure of the best way to set individual volumes and ranges.

    One last thing I can't seem to do is use the same sound file in different emitters, it confuses the system and doesn't work. - This is quite important to me as I would like to re-use many smaller spot SFX multiple times across a level. As part of this I also don't know how to stop playing the audio file when out of range to free up resources. In my messy code I used system compare distance to start / stop the files.

    I think it's still good to have more variety in repeated sounds even with random variation, but yeah I will be adding that too!

    Thanks again for having a look man.

  • Thanks for having a look, I've got a testcap from my project here https://dl.dropbox.com/u/3317708/testarea.capx

    I've removed all the levels this is just a layout I use to play with things, the audio emitters are on the debug layer, press tab to turn on the debug ui while running the game.

    Arrows move.

    I took out all the for each commands.

    It would be super useful to get a solution for this but I also still thing the plugin would be a massive time saver for me considering just how much audio I want to implement.

  • I am dong it in code at the moment and it's a lot of code for each sound object and I can't copy the emitters to create multiple instances of the same sound.

    This is how I currently do it:

    <img src="https://dl.dropbox.com/u/3317708/audio.jpg" border="0" />

    Problem is that for each doesn't work, it messes up when I copy the emitter object.

    So mostly it's for convenience the game I'm working on has a lot of audio.

  • I want an audio emitter behavior, you assign it to a sprite and in the behavior properties you assign it an audio file from the list of imported sounds, from there you select a range which attenuates volume based on its distance from an assigned game object (listener).

    Also in the properties should be a checkbox to stop playing the audio file when object is out of range.

    ---

    If the game object with the audio emitter is copied then the game should play multiple instances of that same audio file, each instance with its own distance attenuation.

    Also there should be a parameter to adjust pitch. And maybe even pitch attenuation based on speed of motion.

    Anyone up for this? I can only afford ?50 :(

  • ha yeah I thought about doing that but it's not practical for large projects I don't think.

  • I ended up recreating the platform behavior by using physics, using a lot of onGround, isMoving type variables. I've got a live demo of it embedded here in the middle of this page http://crudepixel.com/2012/12/making-games-prototyping-pt2/

  • Really cool realtime debugging stuff too!

  • Looks very nice man, good use of physics :)

  • ah my game is all physics driven

  • Cool thanks, I've not learnt lerp.

    object.speed isn't anything that C2 can understand