Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Philip 1337
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 8th Nov 2003 21:32
Hi,
is it possible to create a particle effect and keep it looping so you get a constant flow of particles rather than makeing the particle effects watching them for 10 seconds and then stoping the particle effect?
thx

CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 8th Nov 2003 21:33
yes you need to use a timer function
i have an example from space invaders I made....brb

-RUST-
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 8th Nov 2003 21:36 Edited at: 8th Nov 2003 21:39
the particles are initialized with...



this is extracted from main loop in my game. the theory here was to see baddie blow up in particles, but not halt main loop with particle loop



Hope this helps

PS EDIT
the line that has +500 is setting the particle display time to 500 milliseconds, you can extend it by using a higher number (1000 milliseconds=1 second)
the test at the bottom, just outside the if is what shuts the particles off (hides them). So the particles are "always on" just not "always showing"

-RUST-
Philip 1337
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 8th Nov 2003 22:15
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 8th Nov 2003 22:27
hey... it was actually me who requested this post. at the time i couldnt log in. so thanks G Bros ill take it from here

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 8th Nov 2003 23:19
good luck fellas, hope my little example helps out


-RUST-

Login to post a reply

Server time is: 2026-07-26 15:31:12
Your offset time is: 2026-07-26 15:31:12