It’s a beginner question, I guess, but how can I move the pivot point of the image to be in the center? Or any other point on the object?
in the image :
- where it is now
- where i like it to be
It’s a beginner question, I guess, but how can I move the pivot point of the image to be in the center? Or any other point on the object?
in the image :
Sprites in Defold have the pivot in the center. If you move the sprite itself to 0,0 it should appear centred (if the bitmap itself is symmetrical).
I don’t understand what you’re saying. All I want is for rotation, scaling, and movement to always originate from the center of the sprite, no matter where I move it. In this strange case, the pivot is on the right button side. All I want is for it to be at the center
Click on the sprite in your player.go
and change its position back to X0, Y0. The sprite will then be at the center of the game object. Then you can move the game object itself to the desired location.
Thanks it worked