hi to all
i have a sprite, who have the 8 directions behaviour, it move just left-right two directions, it is possibile to control that with the mouse instead of the keyboard?
Develop games in your browser. Powerful, performant & highly capable.
yes..
How would you like to control it with the mouse..
What actions would you like to do with the mouse?
i found, thanks
on mouse click? following the pointer? using the mouse-wheel? following only when button is down?
probably you'd want to compare mouse.x to character.x and 8 direction simulate actions..
pretty simple, actually..