megasoft78 Posted September 25, 2018 Share Posted September 25, 2018 Hi, When I try to add a new module I don't understand why it doesn't show up in the list of modules. I'm not sure I'm doing it right as in the documentation the user interface is different. I attached a video to show the issue. AddModuleProblem.mp4 Quote Link to comment Share on other sites More sharing options...
enpu Posted September 25, 2018 Share Posted September 25, 2018 You need to require your new module from another module. game.module( 'game.main' ) .require( 'game.button' ) .body(function() { game.createScene('Main', { init: function() { } }); }); Then it should appear in the modules list. I will update the tutorial asap! Wolfsbane 1 Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted September 25, 2018 Share Posted September 25, 2018 I noticed this today when I added a plugin. It doesn't update in the Editor. The module file is actually there, right? I just closed my whole project, and reopened it, and my file was there. But needs some kind of refresh button/feature there. Quote Link to comment Share on other sites More sharing options...
megasoft78 Posted September 25, 2018 Author Share Posted September 25, 2018 Hi @enpu, yes it's working but it's a bit confusing at first. I imagine it will be fine when you'll update the documentation. Quote Link to comment Share on other sites More sharing options...
enpu Posted September 25, 2018 Share Posted September 25, 2018 Yeah sorry for the confusion, some of the tutorials are a bit outdated with the new 1.6.0 version. Will try to find some time to update those asap! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.