Passing alot of variables to a function...

BlitzMax Forums/BlitzMax Beginners Area/Passing alot of variables to a function...

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.

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?

p:tParticle = New tParticle
p.Pos.x = 100
p.Pos.Y = 100
p.Speed = 50
p.Color.Set (255,255,255,1)