M
Muvvin
Guest
Hey guys,
I'm pretty new to programming and recently got a problem which I can't solve on my own:
if (horizontalgeschw != 0 || vertikalgeschw != 0) {
while (angle_difference(direction,image_angle) < 0) {
image_angle += 2;
}
while (angle_difference(direction,image_angle) < 0) {
image_angle -= 2;
}
}
else {
image_angle = image_angle;
}
It doesn't give me any errors, but the sprite just doesn't rotate when I change the direction of movement to up etc.
I just want to get a smooth rotation, not an instant flip to the new direction.
Any ideas? Thanks for your help, show mercy, I'm new here
Cheers
I'm pretty new to programming and recently got a problem which I can't solve on my own:
if (horizontalgeschw != 0 || vertikalgeschw != 0) {
while (angle_difference(direction,image_angle) < 0) {
image_angle += 2;
}
while (angle_difference(direction,image_angle) < 0) {
image_angle -= 2;
}
}
else {
image_angle = image_angle;
}
It doesn't give me any errors, but the sprite just doesn't rotate when I change the direction of movement to up etc.
I just want to get a smooth rotation, not an instant flip to the new direction.
Any ideas? Thanks for your help, show mercy, I'm new here
Cheers