• 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 create event

  1. Y

    GameMaker Too many arguments, how can I simplify?

    Hello friends, I have been working with hitboxes for a while now, and I am beginning to have a problem: my hitbox creation function has a cumbersome amount of arguments. Currently it has separate arguments for the hitbox's X-scale, Y-scale, X-offset, Y-offset, lifespan, X-knockback, Y-knockback...
  2. mari

    Creating object with interactive interface?

    (For context, I started using GMS2 a couple of weeks ago so I'm not 100% familiar with GML or programming at all so bear with me!) I've been following the Little Town tutorial for a game I'll be developing for my university thesis, where the player has to deliver specific items to the NPCs. So...
  3. F

    Variable not set - Object created within Object [SOLVED]

    I am creating a shop. I want to draw an arrow object when an object for sale is clicked. At the moment, the shop object draws the objects from a shop inventory (ds_grid_get(myItems,x,y)) with: (note that the local variables like itemLeftStart and horizInc are just set to numbers within the...
  4. G

    GameMaker [Solved] - how to set new object variables using with statement

    Player creates an enemy seeking bullet that tracks down an enemy. The code to choose a target enemy is within the player object. I want to set the bullet's target (enemy id) when the bullet is created from within the player object. From within the player object, if I use something like this...
  5. Lord KJWilliams

    How do I declare static global variables ( like in C ) for objects in GML ?

    Ok, I am really not clear on the variable types - Im just going by what I have read in the manual and have learned from watching youtube videos. Please correct me if I am wrong anywhere. Please note my knowledge of the C standard, C99 - is obsolete ( it works my djgpp compiler ) - I have not...
Top