NervzZ / Designing-learning-tools-project

How people learn: Designing Learning Tools II
2 stars 0 forks source link

add teleportation mechanic #78

Closed simi48 closed 5 months ago

simi48 commented 5 months ago

Hey @NervzZ I'm struggeling a little with the following:

  1. How do I send stuff from one scene to another?
  2. How do I go back to the original scene after loading a different one?

Heres what Ive done: I added 2 portals to the firstlevel scene. 1 updates the coordinates of things that come in contact with it (and it works for the player but not the moving squares). The second one loads a new scene if the collision is with a player, else it tries to send the object to the new scene. loading the new scene works, but sending objects does not.

But , in the new scene I have a portal, that should send me back to the original scene but nothing happens? I assume I can't just load the old scene but I'm actually not sure how the LevelLoader works.