event

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. DarthTenebris

    GMS 2.3+ 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...
  7. Logix

    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...
  8. 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...
  9. Daniel Mallett

    GMS 2 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...
  10. 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...
  11. Suzaku

    GMS 2 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...
  12. 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...
  13. C

    Question - D&D How to make a action go if it meets two parameters (events)

    I don't know how to do this, Im a new coder (DnD).
  14. 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...
  15. D

    Question - Code Key down event stop working.

    [EDIT] Whatever the problem was, has been fixed in a later update of GMS. Hi. I'm trying to make a simple Pong game in GMS2 using GML. What I would like to do is when the ball collide with the paddle I want to take in to account if the paddle moving and which direction when the ball bounce off...
  16. D

    GMS 2 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...
  17. H

    F&S Play Indie Game Contest

    Hi, I would like to invite you to submit your games to the IX F&S Play Indie Awards. The deadline is October 31th. It´s free to submit your games. F&S Play has established 1 award of 7,000 euros for the best Indie Game Category. The 10 finalists will also receive a free Booth for showing their...
  18. Rekenq

     [Feature Request] Event description override

    It would be awesome if the description of an event could be kept when overriding said event in a child class. That way I wouldn't have to rewrite the description for every child object on every event that needs to be overridden. P.S. This is my first time posting so I'm not sure if I'm doing in...
  19. lukbebalduke

    GML Reasons why Draw event is not being called?

    Debugging a strange issue in my game I have noticed that the draw event is not being called. (that means, if a put a breakpoint in the very first line of the code it does not even show in the debug.) The first thing I decided to do was to check if the instance was visible, and yes, it is! The...
  20. D

    Question - Code Is it possible to remove an Event during run time?

    Hello! I would like to remove the Step Event for some objects during run time (i.e, while playing the game) via code, is it possible? For example, let's say I have an object with Step Event defined in IDE. Then I run the game, start playing, an instance of that object is created, and later I...
Top