• 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. Binsk

    3D 3D Vector Rotation Direction

    Howdy! So I have implemented a brute-force solution for this and I am hoping someone may know of a more efficient method of doing this. I am implementing a script that calculates a quaternion I can use to rotate a vector from its orientation to some other specified orientation. The issue of...
  2. C

    Stopping rotation at a quarter circle? [Solved]

    So, I'm making a game where, at some times, all game objects rotate around the center of the screen. I've had it working just fine until now when I want to change a thing. The code I'm running at the moment is: if (obj_timer.state == main_states.onRotationCW) { radius = point_distance(x, y...
  3. W

    GML Physics: Bullets Not Shooting Straight W/ 360 Aim

    Hi, I can't seem to get the player's projectiles to shoot straight using physics. In the game I'm making the player has 360 degree aim. Currently bullet direction is decided by phy_roations = obj_player.phy_rotation. It does the job for the most part except the trajectory of the bullets are...
  4. E

    Help with Throwing knives/Stars. Getting projectile to spin mid air

    first time posting here, title says it all really just trying to figure out how to get projectiles to spin mid air. Have figured out how to throw the knife object and collide with enemies and do damage and all that but can’t seem to find any info anywhere on rotating the object mid air. I’m sure...
  5. N

    Rotating View Angle With Player

    I'm using Game Maker 1.4. I'm trying to make the room view angle to match the player image angle. It works in a sense but not in the way that I'm wanting. I need the view_angle to match the player's image_angle rotation so that they are constantly facing the top of the screen. As it stands...
  6. Z

    Asset - Demo Now released! Pixel perfect sprite rotation around any pivot point

    I really hope this helps people, I worked hard on this one to figure out all the math, and make is as simple and as elegant as possible. This is very readable, compact, but incredibly powerful when it comes to rotating sprites. https://marketplace.yoyogames.com/assets/8364/sprite-rotation-toolset
  7. S

    Sprite offsets when a fixture is rotated

    I was wondering why the sprite of an instance sort of offsets when the instance is rotated. The red box is the actual shape of the fixture box drawn by phy_debug_render_shapes and the black sprite shouldn't be visible if it was working as intended. The left peg is at the starting angle and...
  8. M

    GameMaker [SOLVED] how to make an object rotate another

    Heya! Back again with some questions coming from a not-so-skilled programmer: So, basically I want a certain object (point_obj) to rotate another object (ship_blue_obj) if it is idle. I have this code set up: with (point_obj) { if...
  9. J

    3D collisions on a race track using pre-determined nodes

    Hello :) Thanks so much to anyone reading this post. I've actively been programming and designing in GameMaker for about 7 to 8 years but I cannot recover my other community account so I've made this one to post my issue here. I'm currently designing a 3D racing game with models imported into...
  10. L

    How to prevent an object from rotating after changing rooms?

    Hello! I have an issue with my project, i have an object that moves using physics, i made an event in "create" with the code "phy_fixed_rotation = true;" to avoid the object to rotate, but when the object warp into a different room the rotation is back. What should i do?
  11. A

    Windows Rotate an Object around its Centre

    I am trying to rotate the following object around its own centre. I saw there is a way to do it on every frame, but I want to make the player change its rotation with the left (anticlockwise) and right (clockwise) direction keys. Any advice please? :) Thanks in advance!
  12. C

    GameMaker Movement and rotation help

    I have two objects, I want obj_a to do two things: A: Move to the closest instance of obj_b B: Rotate to still be on the same origin as obj_b AND face the same way as the closest instance of obj_b I am really having trouble getting this to work... I am kinda new to GMS although I have about...
  13. S

    Question - IDE Any way to snap rotate in room editor?

    So i'm making some rooms. And have some diagonal walls i wanna place down. I figured instead of making 4 different objects for pointing 4 different ways, it'd be better to just have one, and rotate it to my needs. You can double click and change the rotation manually. Or drag near the corners...
  14. S

    GameMaker [Unsolved/Closed] Rotate Around Center Using draw_sprite_general

    I want to draw a gun sprite and have it look towards the mouse. So far the rotation is based around where the drawing is made which is the top left. How can I make it rotate around the center of the drawn image using draw_sprite_general. I know using draw_sprite_ext fixes this but I would like...
  15. josyanf1

    Screen rotation (No Android)

    Hello everyone! I'm doing a vertical shump and I would like to know how to rotate the screen vertically (TATE Mode) so that it is like the Ikaruga of Nintendo Switch. I tried with image_angle, but the GUI does not rotate and also the black bands on the sides cover what is missing from the...
  16. P

    GameMaker Problem Rotating Sprite + Lerp

    Hi all, I'm trying to rotate an enemy that is following a path. using image_angle = direction works but it gives me the "lag" (it dosent change smoothly the angle) effect beacouse the enemy is moving slowly and i have big difference beetween the "past" direction and the "actual" one from step...
  17. P

    GameMaker Object following movement and angle

    Good morning all. I have an object that i want to follow the mouse position when i click everywhere in the room. This is not a big problem and i have the code running well. I have a problem since i want this object to have its image_angle facing the direction the object is moving to. In this...
  18. P

    Spawn object on the side of another object

    Hello I am trying to spawn on object on the side of another object that rotates with the mouse? I want it so it always spawns on that side no matter what the rotation the other object is Any tips on how to do this?
  19. R

    Fix Clipping of Rotating Enemys?

    Hi! I am making a little Top Down Shooter and I wanted to ask how to fix this? Basically the enemy are just following the Player and rotate towards them but if the come to close togheter they clip into each other until it looks like it's only one enemy. (Like in the picture) Thanks for your help!
  20. K

    Question about physics_particle_draw(typemask, category, sprite, subimg) and particles momentum

    Hello,I'm currently having fun optimizing a game that has massive usage of soft particles; I've noticed physics_particle_draw(typemask, category, sprite, subimg) documentation states: "The drawn particle will use the colour and alpha values set when you created it, and will rotate with the...
Top