What if I have sounds that are used for the player that are head relative and the same sounds are used for an other character witch is world relative in 3D surround. What is the best way to do this?
example: both use the same power up but I want the power up sound for the player to be played head relative and when the enemy picks up the power up I want to hear it in surround and with the distance rollof fx.

  • You must to post comments

If I understand you correctly you want to have power-ups as 2D sounds when the player’s character gets it and a 3D sound if a different character gets it.

[pseudo code]

system->createSound("powerup.wav", FMOD_3D, 0, &powerUpSound);

system->playSound(FMOD_CHANNEL_FREE, powerUpSound, true, &channel);

if (playerpickup)

if (enemypickup)
channel->set3DAttributes(enemyPosition, 0);


Edit: Extending this to use head relative instead of 2D sound wouldn’t be difficult. The basic idea is the same, you need to have two cases. You’re going to have to position the object differently if it’s head relative so you will have two cases anyway.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.