Another way to code

I wrote the code like this. Is this a problem later in the course?

1 Like

Depending on what triggers each method, you’ll either be loading level index 0 or 1.

What I mean is, if you have more than two levels, the third and so on will not be loaded. You’d want to do something like currentScene + 1 or something.

Someone else with more experience can probably give you a more detailed explanation with a better code snippet, but I hope this much makes sense for now.

1 Like

Thanks for helping me :slight_smile:

1 Like

You’re welcome!

Did you get your game worked out? Are you back on track?

yes, it’s all good now, thanks for that.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms