hi everyone;
I want the ship in the image to change the frame according to the position I click with the mouse.
Spritesheet image;
So, this is what I want;
hi everyone;
I want the ship in the image to change the frame according to the position I click with the mouse.
Spritesheet image;
So, this is what I want;
This is a bit like
I tried the codes as a result, it partially saved, but cannot fully.
@samme
I increased the coordinates from 8 to 32 with some hassle. it will do thanks.
FINAL GIF;
Yes, the important part is
Phaser.Math.Snap.To(angle, Phaser.Math.PI2 / 32)