delgado - that project makes no sense. You are trying to use "Sprite is outside layout" to detect if all sprites have been destroyed. You should check if the sprite count is 0 instead. If no instances exist, none of its conditions are ever true (it makes no sense to ask if a sprite is inside/outside the layout if none exist - the question simply does not apply).