1. 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...
  2. 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 =...
  3. 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...
  4. O

    GMS 2 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: I think it is first shrinking the sprite and then rotating it, however, I want it to...
  5. O

    GMS 2 [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...
  6. 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 ...
  7. 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...
  8. 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...
  9. Wretched.Dunce

    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...
  10. Elkrom

    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...
  11. Necromedes

    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...
  12. 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.
  13. Strakee

    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...
  14. M

    GMS 2 [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...
  15. 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...
  16. 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?
  17. 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!
  18. CrackedGamer§

    GMS 2 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...
  19. 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...
  20. S

    GMS 2 [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...