Question about "destroy"

DayanFernandezDayanFernandez Member Posts: 21
edited November -1 in Working with GS (Mac)
How would you guys make all the actors destroy upon level completion ? Im currently having my game images go up to 80 MB because Im pretty sure it has to do with all images being stored up on memory and not being destroyed upon level completion.

Comments

  • OctappusOctappus Member Posts: 68
    I don't know if it's the best way, but I have used a boolean attribute called 'level_ended', which I set to false when a level starts and true when a level ends.

    All the actors that I want to be destroyed have a rule behaviour that says 'when level_ended=true destroy actor'.

    If there's a better way, or if this unnecessary then I'd be interested to know.

    Simon

    image
Sign In or Register to comment.