1 decade ago by Hareesun
I'm having this problem that I just can't seem to figure out. For some reason my triggers seem to be auto-firing.
Even if I use the default trigger and level changer from the Biolab Entity pack.
EDIT: I've just done it, but it's not perfect by any means.
Even if I use the default trigger and level changer from the Biolab Entity pack.
... check: function (other) { if (!this.collide) { this.collided(); } }, collided: function () { this.collide = true; console.log('this fires as soon as the level has loaded'); }, ...
EDIT: I've just done it, but it's not perfect by any means.
update: function(){ if (this.distanceTo(ig.game.player) < 4) { if (!this.collide) { this.collided(); } } this.parent(); }, collided: function () { this.collide = true; console.log('this doesnt fire immediately'); }