The Daily Click ::. Forums ::. Klik Coding Help ::. particle sprays
 

Post Reply  Post Oekaki 
 

Posted By Message

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
7th June, 2007 at 01:04:42 -

I'm trying to use the particle spray object for blood effects. Its much more efficient (at least it appears that way) than creating hundreds of active objects etc.

In the game I'm making, enemies go flying when you hit them and they trail blood throughout their flight. I have to keep updating the position of the particle spray to match the position of the flying enemy. So therein lies the problem, how do I do that?

I don't have much experience working with particle sprays. They seem to work fine if you want particles in a single location or one spray at a time but when you have multiple sprays, you need to start keeping track of their IDs and starting them and stuff.

There MUST be a way around this. Otherwise I'd consider the particle spray object to be largely useless.

Zi-Xiao

 
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
7th June, 2007 at 12:56:36 -

Doesn't the particle spray object use actives anyway?

 
n/a

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
7th June, 2007 at 16:20:39 -

I know the particle spray object needs you to define an active object you want to use as a particle. As for what it actually does with that reference, I have no idea. So I don't know if the particle spray object actually is creating active objects or if it creates some specialized object.

Zi-Xiao

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
7th June, 2007 at 16:44:05 -

I tried using partic;e spray but it isnt that effective i don't think. you might be better using shoot object instead. but if you wanted to set the position of particle sprayer you would assign it the relative x and y coords of the enemy. this would go under the always command. make sense?

 
n/a

Sephirenn

Possibly Insane

Registered
  15/01/2002
Points
  2343

360 OwnerPS3 OwnerWii OwnerI am an April FoolVIP MemberGOTW JUNE 2010 WINNER!
7th June, 2007 at 21:18:48 -

just to quickly chime in, I was recently messing with the particle spray object and yes, each 'particle' sprayed is its own separate active object.

 
*Sephirenn*

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
7th June, 2007 at 21:28:44 -

More efficient/effective just to do it your own. Particle spray is more useful if you just need a minor effect in a smaller project.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
8th June, 2007 at 03:24:15 -

In a smaller project you might as well just do it manually anyway, and eschew the extension overhead.

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
8th June, 2007 at 03:38:57 -

Ugh, a lot of manual effects are ugly, unless you're going retro.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
8th June, 2007 at 04:17:02 -

What? There's nothing the particle extension can do that you couldn't do manually.

 
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
8th June, 2007 at 12:34:27 -

It's not hard to do great particle effects manually if you put the effort in.

AsparagusTrevor can make amazing blood effects

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
8th June, 2007 at 12:44:50 -

I once tried the particle spray object, but it seemed pretty useless to me. I like doing it manually instead; you get more control of things that way. Plus, like someone said, the thing with reinventing the wheel is that you get a different wheel every time.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click