object

  1. FoxyOfJungle

    SOLVED Unable to get object for index 100001 ???

    Hi! It's the first time I've seen this error specifically. I'm starting to think it's a bug (or I don't understand this behavior), but I'll try to explain: #1 - I have this code in a script file (GML): Code 1: enum ENUM { ITEM1, ITEM2 } function ftr_setup() { global.list_of_itens...
  2. 21Delynx21

    GMS 2.3+ [SOLVED] My Object does not move when I try to use a script instead of using the event manager

    Hi everyone First I made the movement in the event manager for every button itself, but when pressing two buttons at the same time, it went not the way I'd like to. I added the function in the event manager and have no clue why it doesn't work, the object is not moving. I guess I forgot...
  3. JelleB

    Other object moving when its not suppose too..

    This object is moving when something else is suppose to be moving. No where in my code is obj_MoveButton mentioned.. And yet it moves when obj_WallPeice is suppose to be moving.. Help.
  4. S

    flashing label

    I have an idea to make flashing label. When the player will be near some object (for example rock) there will appear flashing label (press "H" to hide or sth like this). I know how to do it if the label will be an object. But i don't want to make one more object for such thing. I wanted to make...
  5. JasrielKraftuur

    SOLVED Setting Variables to Objects through ds_lists

    Hello. I am trying to create an inventory system that displays information based off the object you currently have selected. I've gotten the ability to show information to work, but I need to create a variable to set that value to. What I'm trying to do is print out this list of objects, the...
  6. R

    SOLVED Assigning an object to a variable?

    In my game I have created an object for my player's lives, and I also have a global variable called 'global.life'. Is there anyway that I could get the obj_lives to link to the global.life variable so that the hearts show up instead of just a number? I have included pictures of my code below...
  7. T

    How to make changes on an object when another object is clicked on?

    hi In game maker studio 1, I want to make some changes on object A when the user clicks on object B. but I don't know how to define the events on these two objects. any suggestions will be appreciated.
  8. M

    noob question, object properties.

    so i was wondering, how to assign "properties" to objects. what i mean by that: for example, i have Player, who is colliding only with obj_solid. So, to add different kinds of solid platforms, i create an object as a child for obj_solid, so that player will collide with all of them. but that is...
  9. D

    (Solved) How to remove sprites/objects from room?

    I have a sprites/objects in a room that I cant double click or right click to remove it. Any advice?
  10. ColinTheGamer

    Need Help With Coding Weapon Movement With Player

    Hello, I'm currently having and issue with my weapon not following me properly. It follows me as I move and fires correctly, but there's a delay when it follows me that makes it look like it's floating in front of me rather than being held by me. The code I used is very simple, I'll post it...
  11. X

    GMS 2.3+ Override a function of a parent object in the child object.

    Hello everybody, I've quite a little diffculty on something. Here is the recap : I have an object obj_aaa_par with a function in his create event : function generic_func(_var) constructor { obj_idx = _var.object_index; x = _var.x; y = _var.y; name = _var.name; } This...
  12. xDGameStudios

    GML [TEXT TUTORIAL] object.variable vs global.variable vs globalvar/macro structs

    GM Version: All Target Platform: Windows / All Download: n/a Links: n/a [PROBLEM] What is the difference between object.variable, global.variable and what are globalvar macros? When should I use one of the other?! [EXPLANATION] The first thing that we need to understand is that we are trying...
  13. ASOBU

    GMS 2.3+ Grid System with FriendlyCosmonaut [P8]

    thank you open this thread. I m bothering to an error that object Crops_system's roomWidth and roomHeight in Room_start. Allow me to use odd English. Now I reference from FriendlyCosmonaut Part8. I don't have any idea to solve the error aleady. oCrops_system...
  14. S

    GMS 2 Defining object depth by creation order

    hi I'm working on a pen&paper helper thingy that creates objects upon pressing a button (like map object;walls etc.). It's crucial that the last created object is overlapping all previously created objects and I dont know how to get that working. Sorting the depth by y-value makes no sense, I...
  15. L

    Object keeps respawning

    I got a textbox system here, but I got a problem that when the textbox destroys itself, it creates itself again due to this in the step event of the person I'm talking to: (KeyInteract = vk_space) if(!instance_exists(obj_textbox)){ if(place_meeting(x, y, obj_player)){...
  16. anjai

    Windows SOLVED // how do I respawn an object on the place it got destroyed?

    I tried to find it out myself but all of the tutorials explain how to randomly respawn after some time and I need my object to respawn on the exact same place it got destroyed and just after it got destroyed and not at a certain amount of time :) If someone could tell me how to do it or where to...
  17. S

    SOLVED Hi, beginner here. I have not been able to successfully code my bullet laser i have made to shoot from my ship. Please help?

    I have now been using Game Maker and learning to code in GML for 3 days. Someone else on here helped me with something before so I am hoping someone can help with this. I have tried to code a laser bullet to shoot from my ship, but when I press the space bar that I have assigned to shoot the...
  18. S

    SOLVED Can't move 2d ship object, want to move it horizontally and vertically

    Hello everybody. I'm a beginner to GameMaker 2 and GML. I've been using the engine for only 2 days so far. I've encountered a problem with my code. My project is a 2D top-down space shooter. I've been following 3 different YouTube tutorials on making a movable spaceship. One tutorial I watched...
  19. V

    Windows Problem when I run a project after the update to 2.3.0

    Hi guys, after the update to the 2.3.0 version when I run a project (converted to 2.2.5 or not) I can only see the background and hear the music, nothing else. Object and tilesets seem invisible. I have already reported this problem as a bug to YoYo. They suggest to switch the graphic card to a...
  20. huenix

    Multiplayer Player Specific Objects/Layers with Networking Server Client issues....

    Hello..... i am making a multiplayer board game or sorts. What is done/working: -server/client buffers passed back/forth between each player (movement, sprites, etc) What I can't figure out and trying to do: -Player "A" and "B" are standing next to each other, both next to a room, with a...
Top