Hi,
Please see the images below;
#Image 1: Collision.hp - I have a sf::SoundBuffer m_SoundBuffer; & sf::Sound m_Sound member variables.
#Image 2: Collision.cpp - In the Collision Class Constructor, I'm loading the .wav to the m_SoundBuffer and setting it to m_Sound;
#Image 3: Collision.cpp - I want the void function to play the sound if (bool m_IsColliding == true).
Result = The sound doesn't play when colliding with the item! :/