Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Regret666 |
Aside from detecting in area2D, can i use groups to spawn a scene?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Regret666 |
Aside from detecting in area2D, can i use groups to spawn a scene?
Reply From: | AlbGD |
This is actually an interesting question, and now I’m intrigued on what kind of project are you working that requires groups to spawn a scene.
But first, to answer your questions: groups are a way to tag nodes, so you can easily find and reference them through code. And yes, you can use groups to spawn a scene.
What is it that you are trying to do? and what are you currently doing?
Well i want to spawn a random scene outside the camera2d so that my level was random every time, i once saw a game that repeatedly change the scene once it exited a scene to make it look endless link below to understand what i’m saying
https://m.youtube.com/watch?v=y4ZdZ5niZpc
I have an idea that i just have a area2d that have a signal body_exited outside the camera
That when the group called tiles exit the area2d it will spawn the next scene
I’m currently doing a roguelike platformer 2d sidescroll so the camera was fixed and only move left and right
Regret666 | 2020-08-23 07:28