Since it wasn’t wroth it to make a new topic i’m asking it here.
Can someone please help me with this code :
if((Health <= 0)) {
if (DeadSound) {
DeadSound->Play();
}
}
i wrote this for when player health reaches 0 to play the deadSound but it never plays ! (it just play when i hold alt+tab and then it suddenly play !)
it’s not only that almost all of my “bool” variables works invert.like this one :
if (isPlayerFound == true) {
if (AIFoundSound) {
AIFoundSoundMain->Play();
}
}
But if i choose" if (isPlayerFound == false) { " it will works but it will makes a noise on my speaker when enemy isn’t found the player at it will gets worse if AI count being more.
Can anyone hell me with this ?