1 decade ago by garfnarf
Hi guys,
i try to build a mobile positioning system. I want to use the mouse position.
in the main.js so i used this formy init function:
in my Entety i uses this:
This Code workes at the desctop browser, but not at a mobile browser.
On a mobile browser the position is only detectet, when i press the screen, but if i try to slide on it, it does not work.
i try to build a mobile positioning system. I want to use the mouse position.
in the main.js so i used this formy init function:
init: function() { ig.input.initMouse (); },
in my Entety i uses this:
update: function(){ this.parent(); this.pos.x = ig.input.mouse.x - this.size.x/2; },
This Code workes at the desctop browser, but not at a mobile browser.
On a mobile browser the position is only detectet, when i press the screen, but if i try to slide on it, it does not work.