Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by yatayata

hi -

i want to have some utility methods, always available.
i guess i could put these outside of the impact framework, but then i have to also remember to do this for other projects, the editor etc...

i put some code into the plugins directory, and called these methods inside an enetity init method. at game runtime it seems ok, but when i load those same entities within weltmeister i get methods undefined... maybe the load order is different for the editor?

so wondering what others are doing with their own libraries?

1 decade ago by dominic

I suspect you only required your plugin module in your main.js? The main.js is not loaded by the editor, so the module system wont even know about your plugin.

If you require your plugin module in each entity that uses it, it will be loaded when that entity module is loaded. That's what the module system is for :)

Also see this post.
Page 1 of 1
« first « previous next › last »