• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

angle_difference

  1. Qlak

    GML [SOLVED] Efficient Angle Check - 359 and 0 degrees

    Hey guys! I'm having hard time when it comes to checking angles. I managed to achieve what I wanted, but I'm sure that there must be a better way, because my code is not clean for sure. Maybe you could help me out :): -For instance, imagine that you have traditional top-up 2d shooter, left...
  2. M

    Rotate sprite when move direction is changed

    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) {...
  3. S

    GameMaker [Solved] Need help with top-down rotation of character.

    Hello, I have a top-down character that consists of two objects - obj_head and obj_body. obj_head is set to always face the mouse. With obj_body, I want it to follow obj_head if obj_head's angle is greather or less than 45 degrees. This code though there is a problem with it, worked the...
Top