I am making a small text game (command prompt) on a windows platform. Essentially player1 attacks player2, where player1 can use special attacks. Some of these attacks have a cool down and/or do damage over time. I got the cool down to work on the attacks, i.e. I can't use the slash attack for 15 seconds after I use it. (Thank you to those who have helped me with that!!!!! My many thanks!) However, now I want to get the damage over time to work for the slash attack. The attack should do 30 damage over 10 secs (3 damage every second) and I want this damage to be taken without freezing the program. In other words, once player1 slash's player2 I want 30 damage taken from player2's health over 10 seconds, but still want the ability to have player1 continue his attack.
thanks!
Start Free Trial