Advertisement

07.05.2008 at 11:58AM PDT, ID: 23540921
[x]
Attachment Details

Having one function run at the "same" time as another function

Asked by neonate928 in C++ Programming Language

Tags: C++

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
 
Loading Advertisement...
 
[+][-]07.05.2008 at 12:02PM PDT, ID: 21938003

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 03:09PM PDT, ID: 21938551

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 09:26AM PDT, ID: 21940779

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 12:09AM PDT, ID: 21943125

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C++ Programming Language
Tags: C++
Sign Up Now!
Solution Provided By: evilrix
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.07.2008 at 01:16AM PDT, ID: 21943326

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.09.2008 at 09:21AM PDT, ID: 21965430

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:07AM PDT, ID: 21965914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:09AM PDT, ID: 21965928

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:10AM PDT, ID: 21965933

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628