So, my sister likes to draw pixel art but the weapons she draws are at a 45 degree angle.
When I put them into a scene with the idea to have them point and rotate with cursor x and y the weapons aim is offset to the cursors position. See screenshot. Black cross is cursor
I’m using this bow but it doesn’t point at the cursor properly.
I’ve tried to rotate the sprite in the instance properties and tried it in the events also but doesn’t work.
I kinda understand why this doesn’t work and to fix this I’d need to rotate the original image in an editor but doing so will change its shape and how the pixels are and that isn’t what I want.
I’d like to keep everything about the weapons intact (because I like how it looks) and still be able to aim it straight with cursor.
Hi, for getting the right results when you rotate your sprites, they have to be aligned by default - meaning already when you load them in your scene - from West (180°) to East (0°) Basic game making concepts - What you need to know to start with GDevelop - GDevelop documentation.
So for your bow the original sprite should be aligned by default vertically, like:
You can either rotate the image or the sprite but either way it will end up looking the same with the large square pixel design basically becoming diamonds. To keep the look, you or your sister would have to create the pixel art upright.