// Run this to find why mousePressOnEntity etc is not working (function() { var _this; var MouseDebug = function() { _this = this; }; MouseDebug.prototype = { preload: function(entityID) { _this.entityID = entityID; }, mousePressOnEntity: function(entityID, event) { if (event.isPrimaryButton) { print("MOUSE PRESS!"); } } }; return new MouseDebug(); });