Odd List behavior

sterlingy

Active Member
Licensed User
Longtime User
I have many objects moving around the screen in their world coordinates, and at random intervals they give birth to another object, which inherits the parent's world coordinates. The child does not move. it is locked to the world coordinate system. As each child is born, it is added to a LIST

The odd thing is that the first child born isn't added to the LIST. The result is that it is not handled in future TICK events.

I figured out the problem, because when I remove the children from the GameView, everything in the LIST goes away, but not the first children.

What could cause this anomaly?

-Sterling
 

sterlingy

Active Member
Licensed User
Longtime User
Problem solved.

There was a counter variable that was shared between two different LISTs, and this created a conflict.

-Sterling
 
Upvote 0
Top