Computer Science Canada finishing my cheap explosion |
Author: | Schaef [ Wed Feb 04, 2004 7:02 am ] | ||
Post subject: | finishing my cheap explosion | ||
hey, this is what i have so far:
Any ideas on how i could use processes or something in to get all of my circles to go out at the same time?? |
Author: | Mazer [ Wed Feb 04, 2004 12:10 pm ] | ||
Post subject: | |||
OK, don't use processes, you don't really need them in this case. You just need to have an array of explosion particles and draw them all during the loop. Here's my modified version of your code:
|
Author: | Schaef [ Wed Feb 04, 2004 4:10 pm ] |
Post subject: | |
ok thx a lot.. how do i stop the explosion after a while though b/c i need to run other things in my program |
Author: | Schaef [ Wed Feb 04, 2004 4:19 pm ] |
Post subject: | |
oh sry! i didnt even notice that it was in a loop... neways thanks for the help. |
Author: | Schaef [ Wed Feb 04, 2004 4:51 pm ] |
Post subject: | |
now how could i change that so that after a few seconds a few of the dots will continue to go off the screen and no more come out of the middle? |
Author: | Delos [ Wed Feb 04, 2004 5:40 pm ] | ||
Post subject: | |||
In the code above...just take it all out! That way you never reset any of the dots! |
Author: | Schaef [ Fri Feb 06, 2004 6:04 pm ] | ||
Post subject: | |||
here is the final code that i created for my explosion:
|
Author: | Delos [ Sat Feb 07, 2004 4:59 pm ] |
Post subject: | |
Interesting...to say the least. Try slowing the explosion down a tad. Put a couple delays here and there (reference them with a global variable, so ppl on different computers can run it at their own pace...Turing problem...hehehe). But really, this is a huuuuuge improvement from your other, umm, twenty odd tries. Keep it up! |
Author: | santabruzer [ Sat Feb 07, 2004 5:20 pm ] |
Post subject: | |
dude.. procedure it and use records, instead of 4 arrays.. well at least i find it easier.. so w/e... |
Author: | Schaef [ Sat Feb 07, 2004 7:39 pm ] |
Post subject: | |
i didnt know how to use arrays b4 so that is why it is an improvement from my other tries.. lol |