Game Maker Studio: How to Create a Smooth Image Angle Rotation?
Visit my MC GAMES site: https://mcolverdesigns.itch.io
Paypal Donate: http://bit.do/fkPAb
GMS File: https://bit.ly/3hZNAVm
obj_box, solid
Events:
Create
Actions:
angle=180+60
//Rotate the sprite
image_angle=angle
Events:
Step
Actions:
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
obj_ball
Events:
Create
Actions:
angle=180+60
//Rotate the sprite
image_angle=angle
///movement variables
vspeed = 0;
m_gravity = .5; ///make this number higher if you want the ball to drop faster.
Events:
Step
Actions:
if mouse_check_button_released(mb_none) angle-=4
image_angle=angle
Events:
End Step
Actions:
////movements
vspeed += m_gravity;