event

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

    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...
  6. 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...
  7. 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...
  8. 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).
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. Dani

    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...
  16. jobjorgos

    Legacy GM is keyboard_check an equal event to gamepad_axis_value?

    Heya. In my game I had the following script for the movement of the player which worked fine: left = keyboard_check(vk_left) or keyboard_check(ord('A')); right = keyboard_check(vk_right) or keyboard_check(ord('D')); up = keyboard_check(vk_up) or keyboard_check(ord('W')); down...
  17. TheOakNuggins

    GMS 2 Instances Don't Run Code

    I've had two problems with creating instances. 1.) Animations don't play. 2.) The step event never executes. I'm trying to recreate Missile Command for school, it's due in 12 hours, and I can't figure out how to get the missiles to destroy when they collide. How I draw laser if dropTarget ==...
  18. clee2005

    HTML5 HTML5 Step event not firing

    I have a strange issue that I am hunting down so that I can report a bug and just wanted to know if anyone else has experienced this. The HTML5 export of our game mostly works, but there are objects where the step event doesn't fire. Or if it does it fires once and then no more. The Step...
  19. A

    GMS 2 Advice on when to execute a sprite managing script

    Here's a question that I think ultimately boils down to event execution order and event optimization: I have a sprite manager script that does simple but useful things for me, like letting me automatically stop a sprite after playing it, choosing choosing a new last frame, and potentially...
  20. N

    Help! Events not creating text box??

    Hello, I am brand new to GMS2 (Downloaded it this morning) and i've been watching tutorials on how to make platformers, but i've run into an issue. In every tutorial, when they click add event, and click an option (create for the purposes of this conversation) the Create window is a text box...
Top