2D Platformer

I purchased the 2dPlatformrr course and trying to complete the course. I get an error stating the menu_gui.gui_script could not send message ‘load_level’ from menu:/gui#menu_gui to ‘game-controller:/gc#game_controller’. I compared my code to the instructor’s code and they’re the same. How do you reference a msg.post ?
My code uses the following code: msg.post(“game_controller:/gc#game_controller”)

Hello @Shawn_O_Neill! Do you mean a course on Zenva? Can you upload a zip of your project when this error appears? The error is clear and shows the object you are trying to send this message is not existing, so make sure first it exists

2 Likes

Yes, I was referring to a course on ZENVA.
2D Platformer Zenva.zip (108.1 KB)

Yep, it’s not there. Please, continue the course, perhaps a next step would be to add game_controller collection? If it wasn’t added earlier in the course (and you are sure you did not skipped it) - report it to Zenva, they’ll be glad to revise the tutorial :wink:

I’m not sure how the tutorial is structured, so what I meant above is, that the game_controller collection file indeed exists, but is not added anywhere in the loaded collection you are starting with, so it’s “not there” in runtime.

Shouldn’t it be that you add everything one by one to the main.collection or the game_controller.collection and it should be used in game.project Bootstrap setting? Please, make sure, you aligned with the tutorial and didn’t miss a step :slight_smile:

First part of my video explains briefly what collections are:

This manual also introduces them:

3 Likes