axis

  1. V

    How do I get these two co-ordinates?

    Heyall I'm using the draw_sprite_pos function to draw a sprite on an angle according to a top-central horizon point. With the help of image scaling I have determined the top left and right two circles and their respective x and y positions. (green) as well as the bottom blue circles y...
  2. kureoni

    SOLVED sprite_index in x and y axis change

    thats the code //for y axis if(y > mouse_y){ sprite_index = spr_player_back } if(y < mouse_y){ sprite_index = spr_player_front } if(y != yprevious && y > mouse_y){ sprite_index = spr_player_walkback } if(y != yprevious && y < mouse_y){ sprite_index = spr_player_walkfront } if(y < mouse_y...
  3. O

    Axis Aiming Help?

    I'm trying to use the right stick (horizontal axis only, i'm using a guitar hero controller and they only have the one axis) to move my image angle. My stick goes between -1 and 1 and i can't figure out how to get this to work, if possible id like to have full 180 degree control (only aiming in...
  4. 0

    movement issue (specifically moving down)

    Hi all, i'm having an issue that is beyond my (almost 0) experience with Gamemaker. im trying to code movement using GML. It works perfectly except for moving left and right. but when i run up or down my character runs diagonally instead of along the y axis. If I remove the sprite animation the...
  5. Liam Earles

    Windows Down on left analogue stick (Axis_lv) to change instance.

    Okay, so when I change instance by pressing down on both arrow keys, and the D-Pad on the controller, they both work fine. But with the Analogue stick, it's a whole different story. So I have an object that can do cartwheels which moves by changing the instance into a different object when...
  6. FeetUpGaming

    Android Device tilt missing axis

    Okay in GMS 1.4 i'm trying to use the device tilt functions in landscape mode it says to use device_get_tilt_y() and device_get_tilt_z() however its the would now be device_get_tilt_x() that i need (the third axis) but it plays up like crazy. I want the yaw and pitch axis' to work not roll but i...
  7. mar_cuz

    GMS 2 Follow Y value of path only

    Hi All, Is it possible to have an object follow the Y axis of a path only while following the x axis of another? say I have a half circle and the path follows the curve of the circle. I want the object to move along the x axis of the straight line but its Y axis to follow the curve of the...
  8. Y

    Legacy GM object not following gamepad

    So I'm trying to make my object move according to where the left stick of my controller is pointing I copied this code from another object I'm using that seemed to work just fine with this code however this object doesn't here is the code: var haxis = gamepad_axis_value(global.gamepad...
  9. L

    3D (Solved) Rotating Dice in XYZ Simultaneously

    Whenever I try to rotate my 3D dice object on x, y or z axis, it will only work on the z axis. Help? Draw Code: d3d_set_culling(false); d3d_transform_set_rotation_x(xrot); d3d_transform_set_rotation_y(yrot); d3d_transform_set_rotation_z(zrot)...
  10. XirmiX

    GML Movement based on rotation or another instance's axis?

    So, currently I have set up for my game pretty complex spawn points. One of these complex parts is that there are two doors that open and close. The doors are set up to move in a certain direction from their current position when a player spawns in that spawn point: Step event for one of the...
  11. XirmiX

    Legacy GM Questions about "axis scale"

    How far does "axis scale" in GMS go? Is it possible to make your own axis on top of it? Everything that happens within a game needs an area, a sandbox space of coordinates, if you will that will allow things to move around. Well, for one reason, I got curious as for how far a scale can really...
  12. mar_cuz

    GMS 2 Lock Joystick Movement To One Angle

    Hi All, I'm trying to have my player move with the left stick of a game pad but back and forth on one angle only. So the angle can be: push_angle = point_direction(oGoal.x,oGoal.y, x,y); I only want to move on that axis (push_angle) back and forth and the player cannot move from that angle...
  13. S

    Locking movment on one axis

    I have a block that the player can push around but is also gravity affected. However, I want the cube to be not moveable while it's falling. I tried things like: if vspd > 0{hspd = 0} But this code doesn't work properly and leaves a small gap. Is there any way to lock an object at an axis when...
Top