I have a QuestManager which stores quests (and their contained objectives) like so:
Each objective has a position (vec2) and a level name (e.g. "outside"). Objectives do not appear until previous objectives have been completed.
Objective 1 is located "outside" and Objective 2 is located "inside". When Objective 1 is completed "outside", Objective 2 must appear (i.e. create a collectable item, etc.) "inside".
How can I make Objective 2 appear in the "outside" level if said level is not the current level?
Notes:
- I am currently using
get_tree().change_scene(path)
to switch between levels
- I've also tried to use
get_tree().change_scene_to(packed_scene)
, where
var packed_scene = preload(path).instance()
, but this gives me a blank screen when I try to change scene.