object

  1. Axl Trauts

    Different x y positions on several instances of same object

    Hi, I am trying several things for this with no luck yet. I created a shop, where you can buy 1-4 wingmen for the player (a plane). They will go to their respective position: two on the left, one behind the other and the other two on the right, one behind another, like a V formation. When the...
  2. M

    Making RPG chest with specific items

    So I created my sprite chest, made it react with my player's hitbox and works fine. Now I just have to tell what's inside of it and I have no idea how to do it. How can I use the same object chest for various items?
  3. Gigicom

    GMS 2 [SOLVED] Place object on top of draw_sprite

    Hello, I am trying to "put" an obj_Slot over a draw_sprite(inventory, [...]). I am drawing the sprite of the inventory in the obj_Player which has a depth of 200. The obj_Slot has a depth of 0. But for some reason, the sprite is still drawn over the slot and I can't find a solution for this... I...
  4. EZTALES

    Legacy GM issue with object sprite not stopping if player is not touching

    hey yall, (video below) was wondering if anyone could help me with this. I am trying to replicate a game called fire for my game and the problem is when the little man falls out of the burning building it doesn't matter if he is touching a player or not, the sprite continues to play out. also...
  5. C

    GMS 2 NPC object good practice

    Hi all! I'm quite new to this so I appreciate all feedback. I'm currently trying to figure out how to best approach having numerous NPCs with varying importance (more important -> more features), different dialogue, etc. I had originally thought to create one generic NPC object and create ini...
  6. S

    Object only works correctly in one room.

    Hey there, I know this is so basic but could not find any previous posts that applied. I have an object that only exists to display/ change sprite based on player states. It works perfectly in roomA but always displays the same incorrect sprite in every other room. There are NPCs in these...
  7. K

    Variable doesn't let itself update from multiple different objects

    Hello! I have a problem with my Project I can't really explain it here's a video: All Variable are globalvar's I am a beginner so sorry if this is a easy problem
  8. I

    Define Object in Script Only

    Hey all. I'm returning to Game Maker after a number of years. Like the new Game Maker Studio 2 UI. I like to avoid the DnD interface and stick with scripting as much as possible. Unfortunately the manual is very much geared towards DnD. Is there a way to define objects in script only? Thanks
  9. NeZvers

    GMS 2 Lightweight objects are there?

    I just read Alejandro Hitti post and in 25th point, he mentions that there are Lightweight objects... If they are there, how do I use them?
  10. Suzaku

    GMS 2 Basics about state machines

    I having a hard time figuring out what are the main elements of a state machine in a general scope. So far I know that there are 3 main elements: 1. the switch in the step event that is supposed to verify on which state the object is at each moment, then it activates the script accordly to the...
  11. I

    GMS 2 How to set variables for clones of the same object?

    So I am working on a fighting game, and in it (of course) I want to have two players to fight against eachother. The problem is that I have 2 instances of the same object and they both use the same controls. How do I make them have separate "moves"? (I would give some code but I have no clue on...
  12. Suzaku

    GMS 2 How to apply code to only the first instance of an object?

    I have a character object in a room and a copy of the same object in the same room. When I move him to the sides both the original and the copy move together. In that case I would like to move only the first instance, not the second one. How do I make my code to apply only to the first instance...
  13. Suzaku

    GMS 2 Check colision between 2 specified objects

    I know that the place_meeting function only checks for colision between a specified object AND the object who called the function. I wonder if there is a function that does the same thing but using 2 specified objects in the parameters, this way I can check for colision from another object not...
  14. hipstercapitalist

    Question - IDE Object Event Order in Code Editor

    hey all, i'm looking for a way to change the order in which event tabs are arranged in the fullscreen code editor. by default, the events are arranged by order of creation, rather than by type. they can be temporarily rearranged by dragging the event tabs, but these changes are lost once the...
  15. zampa

    GML Object collision for moving wall

    So i have a wall in my game that is supposed to move, i set up a collision so that you can not walk through it, the wall has a path to follow and also it stops if it finds any object in his path. If i comment/delete in the create event path_start(); the collision works as intended, but if it...
  16. 2

    Flood Fill Objects Inside Walls

    How do I flood fill objects within the wall starting from the light bulb objects. At first I tried having the bulb create them all, but could not get it to fill some of the shapes. Then I tried the method of creating one blue object at the light bulb, then each blue object checking around...
  17. F

    GMS 2 [SOVLED] Sprite Depth: Stretching to Layers or to Objects

    I need to draw a sprite at a specific depth in order to fit between layers, but I also need it stretched to double its current size. Option 1: Create a second sprite which is double its size, move it to an object, and draw it at depth. There are many sprites and this seems horribly tedious...
  18. V

    GMS 2 Make not solid object go through each other.

    Hello, I have a problem, I have characters and obstacles in my game and I need to take one life from the character while colliding with this obstacle but at the same time I need characters to be able to go through obstacles. How can I do it?
  19. Kaliam

     The default organization of the object event tab needs reworked...

    Quite simply put, this is something that has been on my nerves for a while, and it seems like it should be a simple change. The default order of object events in the editor is pretty poor/nonsensical, it should be reorganized to better reflect the order in which events are executed. This would...
  20. A

    What is a right way for multiple instance events?

    I face this kind of problem very often with multiple object instances.. and i am sure there is better way handling this than what i use. I just don't know what it is and can not find answer in documents.. I give an simple example where this could happen, and how i solve this. We have 10...
Top