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

position

  1. Lumenflower

    GML Drawing instances at the same position only once.

    Okay so that title probably isn't super helpful. Here goes... Basically I've made a little engine where a bunch of ships move around a node-based map. Each node can have up to four connections (North, South, East and West). One ship is controlled by the player, and you can either hit up, down...
  2. W

    Legacy GM [SOLVED] Moving object from x and y to x2 and y2 in a certain amount of time.

    How can I make an object move from one specified location to another in a specified time limit at a constant speed? I've pretty much got the moving of objects down, but I don't know how to enforce a time limit that would also determine the constant speed for the object from a given position.
  3. C

    Why are the object x,y coordinates all the same

    This is nearly the total code in a draw Event. image_speed=0; draw_set_font(Arial2); draw_text(x, y,string(obj_board.x)+string(obj_board.y)); So why is the output such that it is? What is correct code to get the location on screen of this single object with many instances?
  4. M

    Legacy GM [SOLVED] Setting two variables to be equal to a random X and Y pos?

    Hello everyone! This is my first post on this forum, and my question is: How do I set two variables to be equal to a random X and Y position that exists in a room (from 0 to the room borders)? I would appreciate any answers, drag & drop or otherwise, but please try to explain what you are...
  5. 2

    Discussion Question: Way to Move Entire Tile Layer?

    Is there still a way to shift the whole tile layer's position at once any more, like tile_layer_shift(depth,x,y) used to do? Basically for a non-repetitive auto scrolling layer.
  6. S

    Legacy GM effect slightly desynced with player

    can someone help me out? I went and created a top level parent called "Object" to handle my pixel perfect positions however in my "Effect" object it seems that in some spots the positional variables from the "obj_thrust" effect seems to get desynced with the positional variables in my player...
  7. David Richard

     GUI problems and incoherences, a few suggestions for IDE

    Well, there's that already. I did not even start my first game creation in GMS2's environnement that I already have drawbacks on my new working area. So, first thing first... The resource tree, in GMS was on the left, now you put it on the right with no possibilities to change its position, or...
  8. R

    Test the position and collision of an object

    Hi, i'm making my first game and i want to change the speed vertical of an object if he touch another object and at an y position. I know it's probably easy to do but i don't know how to do it, and also sorry for my bad english i'm not english. I hope you can help me.
  9. E

    Menu Cursor

    So i am trying to create a menu where the user has to use vk_up and vk_down to select certain buttons. I have 3 buttons so i created this code. But it doesnt work. Can someone help me out? Object cursor: Create event: pos = 1; maxPos = 3; Step event: if keyboard_check_pressed(vk_up){...
  10. U

    Legacy GM Get instance's id at position [SOLVED]

    Hello everyone. How can I get the exact instance id of an object at a given position? I am not referring to collisions, only the instance's id, so I'm assuming functions as instance_position() won't help much. I know I could use instance_find() and loop through all instances to see if their...
  11. I

    Windows How to create two puffs of smoke behind rotating ship, one on either side for dual thrusters

    I have a ship in my game that can move and rotate around the screen just like in Asteroids, and I want to be able to create a double smoke trail out the back with one smoke trail coming from each of the rear thrusters, but I can't seem to be able to get the correct position for the smoke to...
  12. B

    Windows Forced mouse movement problem

    Sorry if this is confusing Ok, so I'm making a twin stick shooter prototype that locks the mouse into a circle in the center of the window and it works well when it's a single screen, but I wanted to have a larger room to move around in with the "boundary" staying in the center of the view...
  13. A

    need help with having objects stick to each other

    So I'm moving my code from game maker 8 to studio, and the previous code i used allowed me to have the objects spawning at the top of the screen (fallers) stick with the object by the bottom which was catching it (catcher). The problem is that when it the fallers lands on the catcher, the...
  14. M

    Changing a vertex position

    Is there a possible way to change a vertex position within a vertex buffer format?
  15. T

    3D 3D Mouse Checking?

    Heya! Damn I wish there was a 3D section in the Game Maker Forums... Anyway. I've recently starting coding Game Maker in 3D, however, I've never been able to figure out a way of checking when the mouse is hovered over or clicking an object/model. The project I'm currently working on has a First...
Top