Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / restart the new game

Author
Message
Hishoo
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location:
Posted: 30th Oct 2011 22:39
what is the best technique to restart a new game?
should i delete all sprites an images set physics off the go to line
#1 of the code??

please share your technique
Hubdule
21
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 30th Oct 2011 22:41
I think it depends on the game type. On some games it's better to delete everything and start again, on others you just reset the positions, forces etc. and that's enough.

LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 8th Nov 2011 18:25
A good idea is to start your apps with two functions: INIT() and FREE(). Each time you add some resources, delete them in the free function. Make this your mantra, and you will find you seldom have resources hanging around for the next session of your game.

I drink tea, and in my spare time I write software.

Login to post a reply

Server time is: 2024-04-19 15:53:52
Your offset time is: 2024-04-19 15:53:52