• 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!

rotation

  1. FoxyOfJungle

    SOLVED 3D Billboards... how to rotate quad on it's axis, using the vertex shader??

    Hello amazing community, I'm trying to make billboards (for my 3D game) which will be used for particles. In a single batch (vertex buffer), I have several quads, where each 4-vertex quad is a plane representing an individual particle. I create them in real time this way (parts of the...
  2. Bart

    GameMaker Canceling out rotational effect of physics pulley

    Hi everyone. I am currently working on combining my existing Box2D "3D physics" building blocks to get a working 3D "box" collision. The idea is to have a combination of what I'm calling "linear" and "angular" pieces, between which you smoothly transition. The linear pieces work fine, but at...
  3. AndreLeier

    GML Set object rotation to last input

    Hi everyone, I'm making a isometric game with 8-direction movement. I just got the movement perfect how I wanted, with physics! Now I want my player to face the latest input he pressed, and I could solve my problem with: keyboard_check_pressed(key). But I'm not using the keyboard_check as my...
  4. S

    SOLVED Rotation with an anchor point in another object

    I am basically trying to do this: I have a card game in which I need the cards to rotate based on a common anchor point in order to make a kind of circle of cards but with a hole in the center. The anchor point would be the position of another object to make it easier. but I can't find the way...
  5. M

    Help With Adding Game Rotation (Tate) for Shoot Em' Up Game

    Hi Everyone, I am currently making a shoot em' up (shmup) and I want to add in vertical screen rotation (tate) support to my game. This is an essential feature. However, it's surprisingly hard to find a guide or even hints on how to do this. Everything I have come across seems extremely...
  6. 2

    GML Find Point on Rotated Ellispe Sprite Contour

    What formula would find the contour (aka edge) of a rotating ellipse shaped sprite (assume a center origin) starting from the sprite center and in the direction usually of the image angle? I know lengthdir_x(len,dir) and lengthdir_y(len,dir) would work for a circle sprite, or on a non rotating...
  7. O

    3d Collision method that allows rotation

    So what im looking for is a little complicated to explain, but it feels like it should be pretty easy. ill explain the best i can. Im making a 3d project and i currently have AABB collision implemented and it works great but it feels limiting since nothing can rotate (other than appearance, the...
  8. foreverisbetter

    [SOLVED] simple collision with rotated sprite not working

    Hello, surprisingly I didn't find the question already asked here in the forum: why is an instance running one pixel into a wall to its left when it rotated around 180° ? The sprite is 16x16 pixels, the origin is the middle center and its collision is set to be precise. the movement code is...
  9. Alphy

    Legacy GM Rotating multiple Instances

    Hi, is there a way to rotate more than one object with a center x and center y values? Something like this.
  10. Z

    GameMaker Rotating Sprites bia animation instead image angle

    I've heard there is a way of setting a chunk of rotation angles to a specific animation frame, so I could rotate something manually instead of spinning a sprite Please help
  11. S

    SOLVED Rotating around an origin point D3D

    Hey everyone, I have a simple problem that I just don't understand how to fix. I'm making a simple 3d environment using D3D functions. I want a cylinder or sphere to surround my character at all times and follow them with the character as the origin point. I'm going to use that to draw the sky...
  12. G

    why my image simply not rotate?

    I made a simple code but it simply won't work and i don't know why...btw i have solid, collision and physics on, and i made a physics collision shape (convex shape) the code is if(keyboard_check("A")){ image_angle = image_angle + 5 }
  13. mbeytekin

    SOLVED Making a grid with sprites and rotate them based on an anchor point

    I didn't think this is difficult but I'm stuck and need an advice. My goal is making a grid with sprites based on given parameters like horizontal and vertical sprite numbers. This is easy. But I want rotate them all like group from a given origin point with a given angle. All parameters will be...
  14. E

    Help with rotation

    Hi, I need advice on character rotation. I don't know how to set a person's view. Ex. up - the arrow is pointing up. Rotate to 360. I apologize for my English and thank you
  15. J

    (Solved)Rotate Player movement with camera view rotation

    So atm i can rotate the camera and the player matches the camera angle, im trying to add/subtract the angle of the camera view to the movement code of the player. if i rotate the camera 180* and move the player up, it will actually be moving down, because its not taking into account the...
  16. M

    360* Joystick Rotation

    Just wanted to share some SIMPLE code I worked up to get full 360 degree rotation for GamePads (joysticks for GM8) LEFT Joystick - full 360 movement & image rotation End Step Event: hspeed = gamepad_axis_value(0,gp_axislh) // hspeed = left joystick horizontal movement vspeed =...
  17. B

    How do I get the "depth = -y" effect in a rotatable view?

    This is probably basic trigonometry but I have tried and failed. I would like to know "how far up" a point is in the view, even though "up" is no longer -y, since the view may be rotated. Thank you for any help or resources, unfortunately the ones I found did not help me since I did not...
  18. O

    GameMaker Rotate Object, then scale it?

    I have a circular sprite that I want to rotate under a person. To do this I draw it with 0.2 image_yscale and keep subtracting from image_angle each frame. That gives me this: https://imgur.com/a/0y6Nb4P I think it is first shrinking the sprite and then rotating it, however, I want it to...
  19. O

    GameMaker [Solved] Rotate Around Point Other Than Origin

    Okay, so I have a character model with a separate head and body sprite. The sprites are the same size but the head sprite is transparent where the body would be and the body is transparent where the head would be. The reason for this is that I want the head to be able to rotate independently of...
  20. mbeytekin

    Skeleton World Rotation to Local Rotation conversion

    I'm searching for this for a while but I couldn't do yet. In original Spine Runtime there are some functions to do this.But I can't do with gamemaker. I want to make some procedural animations like exploding bodies etc. I have a standart human skeleton. I calculate virtual points for each bone ...
Top