• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker 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.
 
T

TioFall

Guest
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