Antoine Farel
Member
Hey guys!
I got a minigame that generate objects (1 or 2 objects every x sec), so I need to destroy all of them. Since this minigame takes little time (less than 5 sec), I thought about destroying the objects when the minigame is over and not when the object in question leaves the visible area of the minigame.
So I got this idea : I put all of the generated object (their instance) in a ds_list. At the destroy event of my minigame, I destroy all of the objects in my ds_list and the ds_list itself. Si I got a question does destroying a ds_list also destroy its objects which are in it? Because I'm not going to destroy all of the instances before destroying my ds_list if the ds_list_destroy do it for me
Thanks!
I got a minigame that generate objects (1 or 2 objects every x sec), so I need to destroy all of them. Since this minigame takes little time (less than 5 sec), I thought about destroying the objects when the minigame is over and not when the object in question leaves the visible area of the minigame.
So I got this idea : I put all of the generated object (their instance) in a ds_list. At the destroy event of my minigame, I destroy all of the objects in my ds_list and the ds_list itself. Si I got a question does destroying a ds_list also destroy its objects which are in it? Because I'm not going to destroy all of the instances before destroying my ds_list if the ds_list_destroy do it for me
Thanks!