Login | Register

Rotating Arms

January 28, 2009, 09:32 by Nano
[loading]
-->



In the arms Step Event put this script:
x=object arm is attached to.x
y=object arm is attached to.y

{
image_angle = point_direction(x,y,mouse_x,mouse_y);
if (mouse_x <= (object arm is attached to.x+7)) {
image_yscale = -1;
}
else {
image_yscale = 1;
}
}

Comments

Loading comments... [loading]
.
Users logged in:
SekSpeelayjap

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games