For the love of God, someone please tell me what is going on. I have a type -> Particles
Type Particles
Field x#, y#, z#
Field xdelta#, ydelta#, zdelta#
Field image
End Type
Now, I create an instance of the type: snow
; Snow
Global snow.Particles
Global snowspriteimage = LoadSprite("snow.bmp",15);
For j=1 To 100
snow.Particles = New Particles
snow\x# = Rand(-50, 10);
snow\y# = 50;
snow\z# = Rand(75, -75)
snow\xdelta# = Rnd(-0.2, 0.2)
snow\ydelta# = -0.1 + Rnd(-1.0)
snow\zdelta# = -0.1+Rnd(-0.1, 0.01)
snow\image = CopyEntity(snowspriteimage)
SpriteViewMode snow\image, 1
RotateEntity(snow\image, 90 , 0 , 0)
PositionEntity snow\image, snow\x, snow\y, snow\z
EntityColor snow\image, 255,0,0
Next
now how do I create two or more instances of this type without referencing the first instance -> snow?
Thanks in advance!
Type Particles
Field x#, y#, z#
Field xdelta#, ydelta#, zdelta#
Field image
End Type
Now, I create an instance of the type: snow
; Snow
Global snow.Particles
Global snowspriteimage = LoadSprite("snow.bmp",15);
For j=1 To 100
snow.Particles = New Particles
snow\x# = Rand(-50, 10);
snow\y# = 50;
snow\z# = Rand(75, -75)
snow\xdelta# = Rnd(-0.2, 0.2)
snow\ydelta# = -0.1 + Rnd(-1.0)
snow\zdelta# = -0.1+Rnd(-0.1, 0.01)
snow\image = CopyEntity(snowspriteimage)
SpriteViewMode snow\image, 1
RotateEntity(snow\image, 90 , 0 , 0)
PositionEntity snow\image, snow\x, snow\y, snow\z
EntityColor snow\image, 255,0,0
Next
now how do I create two or more instances of this type without referencing the first instance -> snow?
Thanks in advance!