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 superprat

I registered a click event

ig.input.bind( ig.KEY.MOUSE1, 'click');

but when i check the pressed() method for it, it shows me <i>undefined</i>. The state() works perfectly mind you.

This is about as simple as it gets and i've done this for other games of mine but I have no idea what's going wrong here, wasted a day on this.

Any ideas?

1 decade ago by superprat

well it looks like something to do with the fact that I have two game classes. If I load up just one, it seems to be working fine.

There's a link here on reloading the game class, will try some of these things out. But a definite bug here.
http://mandarin.no/startingrestarting-an-impactjs-game-without-reloading-the-page/
Page 1 of 1
« first « previous next › last »