object

  1. 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...
  2. 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?
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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)){...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. zendraw

    Question - IDE sprite->object

    is there a way to instantly make an object for each selected sprite? in the resourse three. and i do need it in the resourse tree becouse i have to put them in specific places in the room editor, cant even code that out.
  15. Leon Hurley

    Putting an Object in a folder breaks my game

    I'm in the very early stages of a simple strategy game which involves picking up things with the mouse to move them. At some point the object/mouse tracking seemed to break unless you moved slowly but I couldn't understand why as that's pretty much day one code I've not touched since. I've...
  16. P

    SOLVED How to create list of Objects Without their Instances???

    So, I want to create level editor for my game, and I have stuck again. Now I don't know how can I collect all my objects that I can edit in one ds_list without creating their Instances. Maybe there is a way I can loop through all of the objects and check for their parent, so the manager objects...
  17. Lens

    SOLVED How to make other objects above an specific one have their events triggered?

    Good morning/afternoon/evening! I'm making a tile-matching game and need pieces to fall once a said line gets completed (removed). Thus, I tried making a if object.y < self.y with(object) triggeringvariable = true; once it turns true, the object gets their ".y += 30". The problem is, instead...
  18. GunnyBoy

    Converting string to object name to return object ID

    I have objects used for the player to collide into to change rooms called "o_transition". Each object has a unique with a naming convention (current_room_to_target_room) and has a a variable for the current room it's in and the target room to move to in the creation code. I'm trying to find a...
  19. Lens

    SOLVED Having problems to identify multiple objects with a collision rectangle

    Hello, good morning/afternoon/evening! I'm using a collision rectangle to identify other object instances around the room, and, while there is any of those specific objects touching/being inside the rectangle, the main character (whose posseses the collision rectangle) will change a variable...
  20. T

    SOLVED Optimization: objects and instances (question)

    Hello! Are there any difference for game if I have (for example) 10 objects or 10 instanses of one object? For memory/performance/etc. I have found 2 ways to make a cutscene, and first is to create a new object for every cutscene, second is to create different instances of one object (it uses...
Top