I have factories for dynamically creating a map in my prototype. Basically I want to read a datafile and have an episode map created from said data.
What I want to do is to destroy this map scene when switching/moving to a more top-level map (overview) - but there doesn’t appear to be any destroy() function for factories and the tutorial doesn’t seem to deal with this either (suggests just moving objects around). What is the approach here?
1 Like
Use go.delete(). Save the id:s of all spawned objects and just delete them when it’s time.
5 Likes