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

event

  1. A

    GameMaker Detect physics collection between static and non-static object

    Hello! I'm making a top-down car game utilising the built-in physics features of GM. With my player character, I'm able to detect physics collisions with other dynamic (density > 0) objects just fine using the Collision Event pattern. The problem comes when I'd like to detect a collision with...
  2. O

    GameMaker Code equal to collision event. Place meeting or instance place gives different results

    I would like a command identical to the collision event in the step both place_meeting and instance_place by default generate different results than the collision event. I would need this code to optimize the game
  3. ProfessorCreepyPasta

    GameMaker Entered purified protected zone from Pokemon Red, Blue and Yellow?

    Hello, I'm pretty new to GameMaker and I bought a game engine thing called MonTamer Maker that you open in GameMaker to use and I was wondering how to create an event similar to the purified protected zone from the Pokemon Game Boy games in GameMaker. I've looked up tutorials on how to make the...
  4. M

    I need help with this depth system.

    I'm using FriendlyCosmonaut's depth system, but none of my related objects draw. Apparently none fire their draw event when I use it on the (depthsorter) object "event_perform(ev_draw, 0)", I suspect it has something to do with the create event of the parent object (par_depthobject) being...
  5. K

    Animation Trigger

    sup, so I'm a starter with developing but I'd like to know if there's a way to make an animation trigger depending on how much time has passed? For example, if a player were to wait 10 seconds, the animation would trigger. I haven't exactly found any tutorials for this online but maybe I just...
  6. Keys

    Gamemaker alternative to Unity events/actions

    So I have a state machine in a step event currently, however in a lot of places the application is waiting for a bool to be set/object to be destroyed etc. While it's hanging waiting for these events since it's in the step event it's getting checked every frame. However I'd like to instead...
  7. OKOCIM

    Max number of collision events per object?

    https://forum.yoyogames.com/index.php?threads/adding-a-new-object-with-any-parent-crashes-game.90054/#post-540036 Above thread shows full context - I performed a rollback but the issue eventually returned. The game crashes with non-zero error upon loading level (after the menu/config room)...
  8. S

    Object events disappeared from IDE

    Hi everyone, I have a troubling issue with an object in Gamemaker. It's called obj_game, and I can see in its corresponding folder (navigating to the objects/obj_game directory) that it has multiple event scripts: Create_0.gml Draw_64.gml Keyboard_76.gml KeyPress_27.gml KeyPress_76.gml...
  9. L

    SOLVED Mouse pressed event code not working right

    Hi, I'm new to GameMaker and I'm having trouble getting my buttons working in game. I have a button object with a Left Pressed event that's supposed to add 1 to a global variable when clicked (as well as destroy any buttons on-screen). The issue is, when clicked, some much higher number gets...
  10. S

    Windows Collision Event Limitations

    Hi, can someone please explain to me what the collision event limitations are? Background information: I have a player object which has a collision event which checks against a bullet object. The player or enemy object is loosing actually health on collision, but I can't destroy the bullet...
  11. B

    SOLVED Help with issue related to persistence and event ordering

    I have an issue that I believe may be due to the ordering of events, but am not sure. The game I’m working on has the player moving through various rooms, and depending on which door the player enters the room from, where they spawn in that room will change. All the rooms are persistent, and the...
  12. theshaggyfreak

    Windows Events List (child inherit issue)

    I've come across something that I'm not sure if it's by design or if it's a bug. If I had an object as a child of another object that has a particular event, said event does not always show up in the child's event list dialog box right away. If I close the dialog box and reopen it, the event...
  13. andev

    SOLVED [GMSTUDIO] http_get not working - No asynchronous HTTP event triggered at all.

    I put show_debug_message("It worked!") in the http async event but it never showed up in console. I saw a post that said you needed to make sure the http_get wasn't in a create event but it wasn't, it was in a step event. I googled forever and couldn't find anything, but then I discovered an old...
  14. D

    Struct

    Hello everybody, I recently got to try out the new features, and the new structs made me think a bit. I have a script called EngineUI, which I intend to house all the GUI elements I'm going to make programatically. Previously, I made an object for every button I added. With the new structs, I...
  15. L

    Draw in editor

    Hi game makers! I'm just wondering if it's possible (or can be made possible) to draw sprites and/or text in the room editor view. This would be useful since I'm using a programmed trigger system (not a fan of putting objects in the scene when I can just achieve the same thing with a small bit...
  16. samspade

    Design Step Events Versus GML Events

    Which would you rather use and why: an object where everything is in the step event, an object where everything is in multiple events? Example, a button object that has left pressed event, the mouse enter and leave event, the left released event or one object that does the exact same thing but...
  17. Daniel Mallett

    GameMaker Event / object driven

    I have been using Game maker for a while. It's worked very well for me up till now. It has recently come to light that I may have been doing this wrong the whole time. I understand that GMS2 has events obviously. Draw create step. Great. Until now I have been doing things like if mouse is...
  18. E

    GML "Draw Sprite" on click

    Hey coders, I want to draw a sprite on click and have it stay there until I click again. This is what i have so far. if mouse_check_button_released(mb_left) && position_meeting(mouse_x, mouse_y, oStats) { draw_sprite(sStatBG, 0, 400, 400); } I understand the draw function is usually in the...
  19. Suzaku

    GameMaker Useful functions for the Draw Event

    Im starting to learn how to use the draw event to draw everything in the game and I would like to know some of the most common and useful functions that are helpful to work with the draw event, not only "draw_" functions, I want functions like something to get the borders of the drawn sprites to...
  20. D

    Collision Event not working

    I made a collision event with another objcet but it doesnt work. The strange thing is that it does work with place_meeting. Working: http://prntscr.com/m6rclg Not working: http://prntscr.com/m6rcqi The o_hitbox contains a sprite with the standard collision mask, and the collision event is on...
Top