I sent you my code via private message but ill have a look at this and try by myself atm
Thanks!
James
I sent you my code via private message but ill have a look at this and try by myself atm
Thanks!
James
Assisting via private message isn’t really the intent of the forums. Rest assured, there are enough Flappy Bird clones and free templates that exist that no one will beat you to the punch. In order to support the community and make sure that I provide information from which everyone can benefit, posting your code in this thread is the only way I can provide assistance.
I suppose you’re right!
Okay so this is my game code:
–
Looking at your code, I see a lot of globals. It is of vital importance that you read through the “goodbye globals” tutorial so that you can structure your code in such a way that doesn’t breed memory leaks, and makes it easier to reload your scene. Check out the Storyboard Sample Project to see how best to declare local variables and so on.
Have you tried adding print statements to your Runtime listeners to make sure that they are in fact being removed when you leave the scene? This will print info to the terminal and tell you whether or not all of your listeners are being removed.
Ill do that now and see if it works!