Quantcast
Channel: Answers for "Attack selected Enemy Turn Based Combat"
Browsing all 4 articles
Browse latest View live

Answer by DRRosen3

You don't have to have every ability in the enemy script. Put this in the enemy script. public void AdjustHealth(int amount) { health += amount; } Now you need some sort of mediator between player and...

View Article


Answer by Hollow Mockery

Set up parameters in your damage function. like this for example: public float CurrentHealth; public float DamageThreshold; public float DamageResistance; public void takeDamage(float Damage, float...

View Article


Answer by DRRosen3

You don't have to have every ability in the enemy script. Put this in the enemy script. public void AdjustHealth(int amount) { health += amount; } Now you need some sort of mediator between player and...

View Article

Answer by Hollow Mockery

Set up parameters in your damage function. like this for example: public float CurrentHealth; public float DamageThreshold; public float DamageResistance; public void takeDamage(float Damage, float...

View Article
Browsing all 4 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>