Home
Products
Community
Manuals
Contact
Login or Signup

Particle Candy with Types

Miscellaneous Forums/Content Creation Tools/Particle Candy with Types

wizzlefish(Posted 1+ years ago) #1
I'm using Particle Candy for my particle engine, but I can't get it to work with types. I've tried everything I've thought of but it's still not working.

Here's my code:

Initializing Particle Candy:
InitParticles camera, "particle_media/particles.png", 3
listener=CreateListener(camera)

Global ex_1.effect = New effect
	ex_1\entity = CreateEmitter_Explosion1()
	Emitter_SetScale(ex_1\entity, 2)
Global ex_2.effect = New effect
	ex_2\entity = CreateEmitter_Explosion2()
Global sparks.effect = New effect
	sparks\entity = CreateEmitter_Sparks()

For hide.effect = Each effect
	HideEntity hide\entity
Next 


And here is the instance where I use Particle Candy with types:
If picked = o\entity 
	e.effect = New effect
	e\entity = CopyEntity(ex_1\entity)
	PositionEntity e\entity, EntityX(o\entity), EntityY(o\entity), EntityZ(o\entity)
	Emitter_Start(e\entity)
	;HideEntity e\entity
	HideEntity o\entity
	Delete o
EndIf 

Any ideas?


Techlord(Posted 1+ years ago) #2
Does CreateEmitter_Explosion1() return a Type?


wizzlefish(Posted 1+ years ago) #3
No.


wizzlefish(Posted 1+ years ago) #4
OH GOD!!! Another tiny little mistake!

Forgot to call UpdateParticles(). GOD DANG IT!


Mustang(Posted 1+ years ago) #5
(quote]
tiny little mistake!
[/quote]

:D