Sprite: Refreshing the gw to restart

VoDB

Member
Licensed User
Longtime User
Hallo everybody,
at the end of a game, all sprites should vanish so I can restart it. I have tried sprite.MarkedForDelete= True and so ,but it deletes only just one sprite. Any idea ?
Thanks
VoDB
 

VoDB

Member
Licensed User
Longtime User
works well, Thank you agraham!
:sign0060:
But instead of go on with gw.New1... I call the App_Start procedure again.
Best regards
VoDB
 

agraham

Expert
Licensed User
Longtime User
I call the App_Start procedure again.
Although you can get away with doing that I would suggest that it is not good practice. I would recommend that you abstract the stuff that is needed to be re-run into a separate Sub and call that Sub from App_Start and your restart code leaving only the real one-time stuff in App_Start.
 
Top