Forum begins after the advertisement:


[Part 8] Mana orbs not working when Mana container is halved

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part 8] Mana orbs not working when Mana container is halved

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11726
    Kiefer Neo
    Level 12
    Moderator
    Helpful?
    Up
    0
    ::

    If the mana orbs in your container are not working when the player’s mana container is halved from having not killed his shade yet, it is due to the mana gain being set to increase only when mana is more than 1.

    To fix this, change the else statement from if(Mana < 1) to if (!halfMana && Mana < 1 || (halfMana && Mana < 0.5)).

    This will allow the mana orbs to gain mana even when the main mana container is halved.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: