O
Owen Buckley
Guest
Just a simple question today, how would i make a instance destroy AND not re spawn when/if that room restarts?
I have my global variable that tracks how many are collected(within my "game" object, that obj is persistent), and then i have in my oCollectable object in the collision with oPlayer a global.collectable -= 1, and then a instance_destroy(). the problem is when i die and the room restarts, the collectable respawns and then i can collect it again.You'd need to set a global variable. If that global variable is set, either don't spawn the instance or destroy it.