• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

GMS 2 Rotating character's animation

Y

yzipyzi

Guest
Hello,
I am creating a 2D top down shooter with gms, and wanted to know how to animate the character holding a gun and pointing it to the mouse without me having to draw him so many times. The camera is going to be at a 45 degree angle (like Stardew Valley, Enter the Gungeon, etc.), so it isn't straight from the top. Do I have to draw the weapon for each angle he is looking at?
Thanks!
 

TheouAegis

Member
It depends on how your sprites are designed. You can use image_angle to rotate the sprites, but if that isn't going to look right, then you will need to have multiple sprites for each angle.
 

TioFall

Member
Like said above, you can use image_angle, draw it pointing to the right (this will make your life easier) and just use image_angle based on the direction.
 
Top