Example
Player have global variable 'HP' default is 100
Global variable - 'Armor' default is 5 (always absorb 5 damage)
Global variable - 'Armor2' default is 50 (that means absorb 50% damage)
Global variable "Damage" is 50
so
example 1
When Enemy shoot at player and "Damage" is 50
in Events should substract 25-5 (total substracted damage should be 20 'HP'
example 2
when 'Armor is 0 and 'Armor2' is 50 (percent)
total substracted from 'HP' should be 25
what i should type to calculate total enemy attack?
now i have:
when bullet collision with player>
From 'HP' substract
Damage -Armor - Armor2 ???