360 degree spritesheet help

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;
ship_space

This is a bit like

@samme

I tried the codes as a result, it partially saved, but cannot fully.

ezgif.com-gif-maker

@samme
I increased the coordinates from 8 to 32 with some hassle. it will do :slight_smile: thanks.

FINAL GIF;
dd

Yes, the important part is

Phaser.Math.Snap.To(angle, Phaser.Math.PI2 / 32)
1 Like