• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

audio_play_sound_at update position

Kyon

Member
Heya all, I noticed that audio_play_sound_at doesn't update the position.
Let's say, it's x,y,0, the sound doesn't move with the x and y positions, it just starts there.
Is there a way to update the x and y positions without using emitters?


Kyon.
 

obscene

Member
Nope, gotta use emitters. :) They aren't hard though. Create one. Play a sound on it. Move it. Destroy it in object destroy or room end.
 

Kyon

Member
Nope, gotta use emitters. :) They aren't hard though. Create one. Play a sound on it. Move it. Destroy it in object destroy or room end.
Bleh too bad. Thanks though.

(any chance you know how hard those emitters are on CPU?)
Just finished removing all emitters from my particles systems (which helped a lot)


EDIT: also, how to destroy audio emitters. Is that the same as audio_emitter_free ?
 

obscene

Member
I doubt they have much of any effect on CPU. I use a ton and never seen anything audio-related creeping up on the profiler.

Yes, audio_emitter_free(), I mispoke.
 
Top