I’m doing game dev 2 and trying to create a game that requires the mouse position, but for some reason the ‘mousemove’ event won’t fire:
game.on('mousemove', function (event) { hero.say('e'); });
I’m doing game dev 2 and trying to create a game that requires the mouse position, but for some reason the ‘mousemove’ event won’t fire:
game.on('mousemove', function (event) { hero.say('e'); });
Sorry, but no one has replied for over a week, @nick
Sorry, just needed to enable this feature for gd2.
So it should work now?
yep, if it doesn’t work in other levels then tell me and I check them
It does work in game dev 2 now, although you should probably support offsetX
and offsetY
, since I had to make a unit list the object keys to realize that I needed to use pos
Also, could you add support for it in HOC too?