So I am making a basic game, it has ants and a shoe.. and the object is pretty obvious but I wanted to see how well I do with a basic idea.. anyways I was wondering how I can setup the sprite(shoe) so I can move it around with the mouse, and how I can incorporate the splat image that I have with it as well so when I click on the ant, it dies and you see a splat. Thank you! :)
Every Tick you can set the position of the Shoe to mouse.x and mouse.y
Or when you click, have the shoe come down at Mouse.X and Mouse.Y.
Mouse.X and Mouse.y is the position of your mouse pointer.
Develop games in your browser. Powerful, performant & highly capable.
Thanks alot, but now the mouse speed is kinda crazy. Any ideas on how to fix that? And I can't find a way to only kill one ant, rather then all of them at once >.< I've looked around other forums, but can't find anything on destroying one object.