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

object

  1. H

    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...
  2. 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...
  3. 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...
  4. F

    GameMaker [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...
  5. V

    GameMaker 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?
  6. 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...
  7. 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...
  8. E

    Legacy GM [Solved] Dragging object relative to mouse position?

    I want to make a simple object dragging system, but when I drag the object it teleporting to mouse position relatively it's position offset. How it looks like: How I want it to look: Well, I tried to animate it realistic and I hope you get my point. So, how I can add mouse position to...
  9. T

    GML Visual Spawn objects from middle top of a object

    Hi I am kind of new to programming and I am trying to make cubes spawn randomly from center top of an object/sprite, so this is what I currently have... and here is the code for the object that I want to spawn... but it end up spawning the cubes a bit to the right of the object and not in the...
  10. M

    Weird wall collision. Need Help!!!

    Hi all, I am very new to game maker so this might be simple but I have been trying to fix it on my own and can't. I am making a game in which I have two walls and two other objects that can be controlled by the player (object 1 and object 2 for simplicity). Object 1 is supposed to go through...
  11. M

    Object 2 cannot get the variable from Object 1

    The Error Report: ---------------------------------------------------------------------------------------------------------------------------------- ___________________________________________ ############################################################################################ FATAL...
  12. D

    GameMaker What is the order of execution in GameMaker Studio?

    Hi. I'm relatively new to GMS, I am working on a small project and now I'm experiencing a weird error and I can't figure out what is causing it. I believe it got something to do with the order of execution under the hood in GMS. The story: I'm using GMS2 and GML. I have created a Game room and...
  13. E

    GML Visual How can I make an object jumping to player to a certain position?

    Right at the beginning of the game, there is an object that must jump to the player. However, it does this, but to the bottom of the player. What I want is, to jump to its head and not bottom. I already have changed the origin of both the player and the object but still not working. PLEASE HELP!!
  14. E

    Object behavior is all the same.

    This is my object spawner, which I'm currently testing with to help me understand controlling objects better. if alarm[0]==-1 { var inst_1 inst_1 = instance_create_layer(irandom_range(200,1910), 200, layer, obj_Enemy_1); inst_1.speed = choose(1,9); inst_1.image_angle =...
  15. W

    GameMaker Script that returns a value returned from an object

    Hi GM community :) Here's a thing I need a bit of help with, and if I can pull this off I'll most likely never have to ask something here again (i know you're all tired of me at this point) Anyway I need a script that returns a value from an object. For example, let's say I wanted to ask the...
  16. FlatulenzaFiamm

    GML Visual Create Instance

    Hi everyone! Id like to create an object via the Create_Instance, but only one. Because using the Step Event, the object created is more than one. There is a way I could create just one? Thanks again! :D
  17. F

    Object persistence - Resets coordinates upon setting persistent again

    Hi, So I have a game I'm making, and there are parts that set the persistence of objects to false, but when I turn it back to true, the x and y of the object reset. Let's say there's an object, it's starting point upon entering the room is (10, 10) and I move it in-game to (30, 30). Then, I set...
  18. T

    Help with ds lists and objects

    Hey All, this is my first post in the community. I hope it's clear for everyone to understand. So, I'm trying to place an Id for every enemy that my project has in the room at the start, I do it with the first paragraph of code that I'm showing here. // The variable auxId is created at the...
  19. E

    Legacy GM How to activate one object in room from many others?

    Little backstory: I have an idea to make enemy spawner - box, which gonna identify where to place the 'enemy' on the floor. It is an object that I can see in room editor, so I can stretch it and thus its code will allow to register all the floor it touches and make a random desicion, where to...
  20. E

    GML How to find out all values in the array as one function?

    How to find out all values in the array as one function? For example: I made an array that will keep objects that can collide player. solidObject[0] = oWall; solidObject[1] = oBox; I want to make collision with all these objects in "solidObject" array but not separately. if...
Top