Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Mesh bugging, random disappearing in my life simulation

Tried to rewrite my life simulation using a single mesh and setRect. Now the rects are randomly disappearing. I am adding a rect when a creature is born, setting its coordinates each frame and setting its color to 0,0,0,0 when it dies.
If you're missing a part of code, that was drawing the creatures normally, i can post it too. Thanks for your help
Here is the code:
https://gist.github.com/anonymous/069db92bef72e044b5b6

Comments

  • Ok, found the bug, i am not resetting the matrix after drawing plants(with translation)

Sign In or Register to comment.