PT
Developer Forums
Register
Login
[Archived] AppGameKit Classic Chat
->
restart the new game
<
1
>
H
Hishoo
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
H
Hubdule
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.
L
LeeBamber
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.