dps is a complex theme.
It involves the player's hit rate and strength, and the enemy's defense:
If the player hits 1 time per second with a strength of 20, the dps is 20. If the enemy has a defense of 50%, it will take 10 hp per second.
If you change the player's hit speed to 5 times per second, the dps is 100 and the enemy would take 50 hp per second.
Or instead change the strength to 10, the dps is 10 and the enemy would take 5 hp per second.
Or change the defense to 20%, dps would still be 20, but enemy would take 16 hp per second.
Another way would be to not have any strength on the player's side, but let the enemy suffer as long as it collides with the player. Then you'd do something like
+ As long as they collide
-> reduce enemy's hp by 20 * TimeDelta
This would let lose the enemy 20 hp per second as long as they collide, no matter how often the player actually hits (animation-wise)
[QUOTE=aznmonkeyboy]I don't know much about ticks and how they work.[/QUOTE]This post
was once written to help people using "else", but deeply explains a tick also :)