Get() doesn't seems to find object created by addLevel() #857
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In Kaboom 3000, you can utilize You can also use const level = addLevel(...);
level.get("*"); // Get all children of level It's wonderful to hear that you're teaching children! Feel free to ask any questions here. |
Beta Was this translation helpful? Give feedback.
In Kaboom 3000, you can utilize
get("*", { recursive: true })
to access to the scene root's game objects along with its child objs. This is due to the parent/child system where a level serves as the parent and the various tiles represent the children.You can also use
obj.get()
to retrieve children within a parent object. EX:It's wonderful to hear that you're teaching children! Feel free to ask any questions here.