I'm making a cow zombie survival game. I have the game code sorted but when the game goes from game over to playing, the cows stay in the same position.
Whats the code to reset the scene?
|
|
You question is a little too vague, you should put in some code or give more references so that people can help you. But IMO you must have forgotten to remove the drawing reference for those in the draw() function, so even after you change the "scene" (whatever you mean by that) your cows are drawn again on top of it. That's the best I could do, hope I could help somehow. |
|||||
|
|
From what I can tell from your code, you'll want to clear out the random blocks you created. Something like:
Additionally, I assume you're using Visual Studio, which has great support for code completion, Intellisense. It's a really easy way to see what methods are available to you for all your objects. |
|||
|
|