GroupofZhaZha / ZHAZHAFIGHT1

0 stars 0 forks source link

Task41: Create conditional statement to check player's hp reaching 0 or negative #56

Open KunL21 opened 5 years ago

KunL21 commented 5 years ago

under battle-ending script, wrote a if statement check if player or ai's health reaching to 0 or negative

Task script test: inside the if statement, led player to a different scene set player's hp to 5, and make player lose 6hp from one battle check if player is being directed to other scene