• 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. M

    how to make object turn (ex) to the left 180 degrees when pressing the "A" key.

    I am fairly new to coding and I am learning game maker I tried to find it on their help page but couldn't. I'm trying to make it so when i press a certain key for my example w a s and d to move around the object faces that direction like up for w right for d and so on... Thanks for any help!
  2. ImFaariz

    Development What is the difference between Objects and Sprites, how can they be used?

    What is the difference between Objects and Sprites? According to one of the videos on GameMaker YouTube channel, sprites don't run any code and can be used for animations. So how can they be used? How can I use sprites for animation for the player(s) [object(s)]?
  3. TerranLore

    GML Visual Object Showing Incorrect Sprite

    Hey all, I'm very new to GM and am excited to make my first post in the community! Hoping you all can help me with this issue. Basically, all of my object instances are showing the incorrect sprite once I run the game. You'll see in my attached screenshots what I mean: the first screenshot...
  4. Jinvorion

    2 Part tanks (Shmup)

    Hi đź‘‹, the thing is i'm pretty noob at programming, and i don't know where to start with this, that's why i'm not adding any code so... I can make the head of the tank aim at the player and fire but what i can't get to work is how to ignore the collision of the body before the head get destroyed...
  5. RizbIT

    GameMaker Saying the object doesnt exists when it does

    I get this error when i run the game: ERROR in action number 1 of Create Event for object loadanim: Variable <unknown_object>.VIEW_WIDTH(100098, -2147483648) not set before reading it. at gml_Object_loadanim_Create_0 (line 9) - x = camera_get_view_x(view_camera[0]) +...
  6. ItalianBoomer

    Is there a way to have different istances of the same object with different sprites?

    If I have 4 istances of the same object (i.e Warrior, Wizard, Elf and Dwarf istances of the object o_Player_Character) is there a way to make them use different sprites? I have found this but it looks a bit too convoluted. Is there a simpler way?
  7. T

    Question - IDE Feather not recognising some object variables

    Hi! I'm currently experiencing an issue where Feather occasionally doesn't recognize a variable used within a function that's been defined in the same create event. I say occasionally since it only seems to complain about 1 out of every 15 functions I've setup this way. The code runs...
  8. MedicOnFire

    GameMaker Cutscene Object Executing Two Steps at Once After Room Transition

    Hello! I am working on a cutscene controller for my game, and I am encountering an issue where after I transition to a new room mid-cutscene, every other action (just textboxes) in the cutscene is skipped. I am generating and managing the cutscenes using an object called obj_cutscene_manager...
  9. krill

    GML Clicking one of multiple copied objects

    I have a layer with multiple instance of the same object, and I want to be able to select any individual space. if mouse_check_button_pressed(mb_left) && collision_point(mouse_x, mouse_y, emptyObj, true, false) { layer_set_visible(slot_layer, false)...
  10. J

    GML How to change object with no sprite to object sprite that created it?

    When an object(with sprite) creates another object(no sprite) How can I make the object with no sprite be set to the one it was made from. I need this one object with no sprite to do this to multiple different objects.
  11. Adriano_ppaula

    SOLVED Help with player aiming

    Hello everybody! I'm having difficulty creating an aiming system for my topdown game. It's not really a crosshair, but an object that indicates the player's direction. First I created an object to be orbited by the player according to the player's left and right buttons. global.b_left=...
  12. Izac

    GML (SOLVED) Object Problem

    I have an object (objExploderange) , I wrote that in its step event: if object_exists(objPlayer) {x = objPlayer.x y = objPlayer.y} Well, If "objplayer" doesn't exist, The game crashes, Saying this: ERROR in action number 1 of Step Event0 for object objExploderange: Unable to find any...
  13. MedicOnFire

    SOLVED Accessing Structs from Other Objects and Scripts

    Hello! I am very new to GameMaker, and I am learning about structs and constructors. I built out a struct containing data for certain creatures in my game, similar to this one below: mystruct = { Creature_One: { Name: "AAA", Health: 987 }, Creature_Two: {...
  14. PlaqueDoctor

    SOLVED Getting the Instance of a Object INSIDE of the Object

    First of all: Im working currently on a Small Multiplayer Prototype. So i wanna put my Instance of my local Player into a buffer. This part of code is INSIDE of the oPlayer Object because i wanna send the Movement to the other Clients. Here is my question: In normal case for example I create...
  15. S

    Object detected as resource

    Hi, I'm new to this but my friend has been teaching me how to code. I've had this issue twice now and I was wondering if anyone knew what was going on? Sometimes, when I make an object, it doesn't seem to be detected as an object. It shows up like a variable in the code and the drop-down menu...
  16. B

    How to prevent an object from hitting through another object?

    In my game that I’m currently making, a player is able to hit through an object and hit an enemy. Simply, I want to make it so that the player cannot do this. Currently I am using an object called obj_damage which is created from the player and if another instance is hit by it, the damage will...
  17. K

    SOLVED object changes into other object

    i've been making a game for a while, but now every time i make a new object and place in the room and i start the game, it changes into an other object for some reason. I'm sure it hasn't anything to do with the code. Anyone has a fix for this?
  18. I

    (Related To "Objects")

    In my game That i am making i have a room that has more than one instance of the same object "Rock". i want to have one object but duplicate it in the room. the problem is i have a code that makes it when i pick it up it destroys it self and other stuff happen and it works fine but the problem...
  19. Jotesco

    SOLVED Any button same bug.

    I just found a bug, and i don't know how to fix. If i do anything with an object this error show up ___________________________________________ ############################################################################################ ERROR in action number 1 of Draw Event for object configs...
  20. Dimsum Cart Studio

    GameMaker The Workspace problem. How to lock the state of Workspace?

    Hi everyone. I have use the GMS2 for months and find some Workspace problem. Every time I open gms2 ,the windows I closed last time will open again. Like the Object-parent and Object-Variable Definitions windows. The Object-Variable Definitions windows even nothing in it (check the attach). It...
Top