Woff Posted September 16, 2014 Share Posted September 16, 2014 After some search, i didn't found an answer if it is possible to realize conditions, when cursor (input?) has a sprite?I began to test this posibility founded on this example. I want that to the mouse cursor was attached image/sprite.. Is it possible? Link to comment Share on other sites More sharing options...
MorpheusZ Posted September 16, 2014 Share Posted September 16, 2014 If you're not using phaser physics, you can do something like:update() { sprite.position.set(game.input.mousePointer.worldX, game.input.mousePointer.worldY);} nak3ddogs 1 Link to comment Share on other sites More sharing options...
Woff Posted September 17, 2014 Author Share Posted September 17, 2014 Thank you! It worksFor default cursor i put "display:none" and everything is awesome! Thank you Link to comment Share on other sites More sharing options...
Recommended Posts