Major slowdown creating more than 600 particles.

BlitzMax Forums/BlitzMax Beginners Area/Major slowdown creating more than 600 particles.

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.

Hi Cajun17.

Below you have xpos and ypos but I dont see them declared anywhere.

	Method draw_star()
		DrawImage starImg,xpos,ypos,0
	End Method
	
	Method recycle_star()
		If ypos > GR_HEIGHT Then ypos = -1
	End Method


You "drawimage starimg,xpos,ypos" but I dont where xpos and ypos came about. If its to store the positions shouldnt it be s.xpos and s.ypos? I'm confused :/