The Daily Click ::. Forums ::. Klik Coding Help ::. Particle effects help
 

Post Reply  Post Oekaki 
 

Posted By Message

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
1st May, 2008 at 13:22:15 -

im not gonna lie to you, ive got several examples and other tutorials on this subject but i still cant seem to make a decent effect,

All i want to do is when a player clicks a button, a active is destroyed, i would like some sort of firwork effect or somthing like that to go off at the actives position when this active is destroyed.

can somone show me how this is done, without fast loops would be nice (i cant us em, and ive tried)

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
1st May, 2008 at 13:27:14 -

Well, a simple way would be to create a particle object with ball movement with a random starting direction, then ass the object is destroyed keep creating a particle object at the object's location (And add a random number to the X and Y co-ordinate to make it look more natural). Make the particles fade out too



 
n/a

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
1st May, 2008 at 13:55:54 -

I'd do this with a trigger. When something is destroyed - create Active 1.

Active 1 will always be invisible and have a short lifespan. Say, Value A is less than 10, add 1 to Value A. Value A is equal or greater than to 10; destroy.
Value A is less than 10; create bouncing ball particle, set direction to Active 1, Value A*3 (or whatever). That will give you a spiral effect.

Then add to the value of the new particles and when their values are greater than X amount have them be destroyed too.

One of my faves is to add to their transparency, and when that is greater than 128 have them be destroyed.

If that helps?

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
1st May, 2008 at 14:36:52 -

Thanks James that is perfect! exactly what i wanted. THANK YOU SO MUCH!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click