There's two things you can do to rotate:
-Make a rotate sprite or
-get GM Pro then use image_angle to rotate
For smooth motion step event:
Code:
//******************
//Keyboard checks
if keyboard_check(vk_right)
hspeed += anything
if keyboard_check(vk_left)
hspeed -= anything
//******************
//Friction (Used from my Mario)
hspeed = (abs(hspeed)-fric)*sign(hspeed) //One line!!!
//******************
//Max hspeed
if hspeed > maxspeed
hspeed = maxspeed
if hspeed < maxspeed*-1
hspeed = maxspeed*-1
But I don't know about the rotating. You have to put the origin of the sprite to the center.
There's two things you can do to rotate:
-Make a rotate sprite or
-get GM Pro then use image_angle to rotate
For smooth motion step event:
[code]
//******************
//Keyboard checks
if keyboard_check(vk_right)
hspeed += anything
if keyboard_check(vk_left)
hspeed -= anything
//******************
//Friction (Used from my Mario)
hspeed = (abs(hspeed)-fric)*sign(hspeed) //One line!!!
//******************
//Max hspeed
if hspeed > maxspeed
hspeed = maxspeed
if hspeed < maxspeed*-1
hspeed = maxspeed*-1
[/code]
But I don't know about the rotating. You have to put the origin of the sprite to the center.