Game Maker Studio: How to Create Swing Axes, using Smooth Image Angle Rotation?
Visit my Gamejolt site: https://bit.ly/3gEAsEI
Paypal Donate: http://bit.do/fkPAb
GMS File: https://bit.ly/30EJeNj
obj_axe, Depth 0
Events:
Create
Actions:
angle=180+60
//Rotate the sprite
image_angle=angle
Step:
if mouse_check_button_released(mb_none) angle-=4 ///computer will rotate box.
//if mouse_check_button(mb_any) angle+=10 ///if active, press any mouse button to rotate box.
//if keyboard_check_direct(vk_left) angle+=6 ///if active, press left key to move box.
image_angle=angle
obj_axe2, Depth 3
Events:
Create
Actions:
angle=180+60
//Rotate the sprite
image_angle=angle
Step:
if mouse_check_button_released(mb_none) angle+=3 ///computer will rotate box.
//if mouse_check_button(mb_any) angle+=10 ///if active, press any mouse button to rotate box.
//if keyboard_check_direct(vk_left) angle+=6 ///if active, press left key to move box.
image_angle=angle