Trouble organizing into scenes #203
-
Hi all, I'm stuck on a bug with my code and I'm not sure if it's my coding error or something with Kaboom. But maybe there's something I'm not understanding about scope within scenes. In version A I am not enclosing anything in a scene scope and everything works (see the script.js file) In version B, I am enclosing my functions in a scene scope and then calling the go function, and I get a mysterious "script error" Thank you in advance for any nudges in the right direction! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
OK I figured out my issue, but it raises a question about how Kaboom should behave… The problem was that loading resources (spritesheets for example) from within the scene scope leaves Kaboom unable to find those resources. But I expected those resources to be available at least from within the scene scope. |
Beta Was this translation helpful? Give feedback.
OK I figured out my issue, but it raises a question about how Kaboom should behave…
The problem was that loading resources (spritesheets for example) from within the scene scope leaves Kaboom unable to find those resources. But I expected those resources to be available at least from within the scene scope.