I recently made "Create" Function for many of my types but I find them quite ugly to use.
Kyoryu, Can you explain why you would use a params type rather that just set the properties on the newly instantiated object?
Kyoryu, Can you explain why you would use a params type rather that just set the properties on the newly instantiated object?
p:tParticle = New tParticle p.Pos.x = 100 p.Pos.Y = 100 p.Speed = 50 p.Color.Set (255,255,255,1)