Computer Science Canada explosion help |
Author: | Schaef [ Fri Jan 23, 2004 4:32 pm ] |
Post subject: | explosion help |
Im trying to make something explode for my school project but i dont know how to get a whole bunch of particles to go out in different directions at the sametime after I have drawn them. I had the same problem with a cloud program i was doing. I drew the cloud with a whole bunch of dots and I want all of the dots to move seperately but I didnt know how and i ended up moving the cloud with Pic.Draw . If ne one could give me a code and explain how they did it it would be very helpful |
Author: | Tony [ Fri Jan 23, 2004 5:01 pm ] |
Post subject: | |
there's a number of particle engines available... you just make a radial push force in the center of explosion |
Author: | Cervantes [ Fri Jan 23, 2004 5:02 pm ] |
Post subject: | |
you could look at Kuntzy's blood particle program... http://www.compsci.ca/v2/viewtopic.php?t=3150 Cheers |
Author: | Schaef [ Fri Jan 23, 2004 5:04 pm ] |
Post subject: | |
i need a code of a program. just a small explosion with little particles. I have no idea how to create a particle engine. |
Author: | Tony [ Fri Jan 23, 2004 5:05 pm ] |
Post subject: | |
you dont have to create, just borrow an existing one and give credit in your program |
Author: | Schaef [ Fri Jan 23, 2004 5:08 pm ] |
Post subject: | |
lol. I would like to know what I am doing so i can use it in different situations. all of the particle programs seem to have "type" and "record" in the beginning of the program. What do these mean? |
Author: | Cervantes [ Fri Jan 23, 2004 5:09 pm ] |
Post subject: | |
ooh ooh! if you can't do it in Turing then you can always draw a series of pictures in Paint of your thing exploding and then import those into Turing |
Author: | Schaef [ Fri Jan 23, 2004 5:10 pm ] |
Post subject: | |
i could.. but that would suck . lol. could someone just plz post a code and tell me how it works? |
Author: | Cervantes [ Fri Jan 23, 2004 5:11 pm ] |
Post subject: | |
I would but I don't know how to do it either |
Author: | Schaef [ Fri Jan 23, 2004 5:19 pm ] |
Post subject: | |
lol. does ne one know how i could do it. I can make all of the little dots put then I cannot change the x and y values for each of them because if i do something like: var x,y:int for dots:1..1000 randint (x,100,200) randint (y,200,300) drawdot(x,y,16) end for could i move all of the dots in different directions instead of just taking a picture of the screen and moving the whole thing? |
Author: | Schaef [ Fri Jan 23, 2004 6:03 pm ] |
Post subject: | |
can someone plz post an example for me? |
Author: | AsianSensation [ Fri Jan 23, 2004 6:06 pm ] | ||
Post subject: | |||
you should have searched. here is Catalyst's code:
|
Author: | Schaef [ Fri Jan 23, 2004 6:08 pm ] |
Post subject: | |
ya i did search. I found that one. I am just not sure how "type" and "record" commands work.. |
Author: | AsianSensation [ Fri Jan 23, 2004 6:12 pm ] |
Post subject: | |
http://www.compsci.ca/v2/viewtopic.php?t=2325 dodge wrote it |
Author: | Schaef [ Fri Jan 23, 2004 6:19 pm ] |
Post subject: | |
ok thx that is a really helpful tutorial |
Author: | Kuntzy [ Sun Jan 25, 2004 3:40 pm ] |
Post subject: | |
If you use my particle engine, the engine is in a proccedure and the names of the arguments are pretty self explanitory. |