fx stuff

Blitz3D Forums/Blitz3D Programming/fx stuff

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Particle Candy is very nice and fast, just a tad too pricy. However, I desire similar spiral and helix movement in my non-single surface particle system. Heres my Particle Structure:
Type particle
	entity%
	texture%
	position.vector[2] ;from-to (vector = x#,y#,z#)
	angle.vector[2] ;from-to
	scale.vector[2] ;from-to
	speed.vector[2] ;velocity ;from-to
	color.color[2] ;from-to
	alpha#[2];from-to
	frame%
	life%
	state%
End Type

I update each living particle with a particleEffect Function.
Function particleUpdate()
For this.particle = Each particle
	If this\state%
		this\life%=this\life%-1
		If this\life%
			particleEffect(this);<-- performs movement, rotation, scale, color, alpha transitions
		Else
			particleDelete(this)
		EndIf
	EndIf
Next
End Function

The particleEffect is where I like to put code to manipulate particles with spiral and helix movement. I will glady modify the Particle structure to meet the need. Any assistance is valued.