How to get x/y of mouse and how to move a sprite

Just tell me please

1 Like

Have your searched the manuals at www.defold.com/learn?

Here’s an example of mouse/touch: Mouse and touch events

The corresponding manual: Mouse and touch input in Defold

Setting the position of a game object (you do not move a sprite but the object it is attached to) is done using go.set_position(): Mouse and touch input in Defold

4 Likes

Lol I almost never check those because idk why it’s just hard for me to find