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

axis

  1. VisscaGem

    GML Character not moving left nor right with a simple code.

    //In the create event: moveSpeed = 4; moveX = 0; moveY = 0; //In the step event: var _right = keyboard_check(vk_right); var _left = keyboard_check(vk_left); var _up = keyboard_check(vk_up); var _down = keyboard_check(vk_down); var _inputX = _right - _left; var _inputY = _down - _up; moveY =...
  2. 2

    GameMaker Gamepad D-pad: Tested as Button or Axis?

    For a gamepad are the D-pad and its constants (gp_padu,gp_padd,gp_padl,gp_padr) buttons tested with gamepad_button_check(device, button), or an axis tested with gamepad_axis_value(device, axisIndex)? I know the analogs are axis, but the manual didn't answer about the D-pad in any examples.
  3. L

    Idle animation in 4 directions with no gamepad axes involved

    Hi, i'm deep newbie in game making stuff, and i need help in solving my issue: I need to change my walk sprite animation, when releasing gamepad stick, to idle animation, but in right direction (top down view) For now, it's works fine with keyboard control, but when releasing any axis in...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. mar_cuz

    GameMaker 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...
  11. 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...
  12. 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)...
  13. X

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

    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...
  15. mar_cuz

    GameMaker 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...
  16. 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