event

  1. C

    Question - GML Visual 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).
  2. 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...
  3. 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...
  4. D

    GameMaker 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...
  5. 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...
  6. R

     [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...
  7. L

    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...
  8. 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...
  9. 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...
  10. T

    GameMaker 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 ==...
  11. 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...
  12. A

    GameMaker 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...
  13. 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...
  14. G

    [SOLVED] Alarm Event: Read out Timer

    Hi there! I have some Alarm Events, for Cooldown, Attackspeed - some of the important stuff! And I want to create a Break Button in Game. So, something like, while you are fighting against your Enemies you can click on the Break Button and if you whish, you can exit the Mission or resume to the...
  15. Y

    Question - Code How to prevent AI from going back to an inactive state?

    Hello, i'm sorry for this silly question but i have just begun studying GMS2 and don't know much about it yet. I am using the following code on a Step event to get enemies to chase the player if he gets too close to them: if (instance_exists(obj_player) && distance_to_object(obj_player) <400) {...
  16. F

    Modify events at runtime

    Heya, I was wondering if it's possible to modify one of an object's events at runtime. For example: I have three scripts, animator_init(), animator_step() and animator_destroy(). The animator_init() script initializes all animation specific variables and data structures, the animator_step()...
  17. 2

    GML Check what Event is Executing, Possible?

    Is there any way to find what specific event is currently executing? eg. Find that you are currently executing alarm(1) when you have code to check for that in that specific event.
  18. P

    GameMaker Best way to manage sub animation in just one sprite.

    Hi everybody. I would like to figure out the best way to manage different animations using just one sprite. For example in my player's sprite I've got: - frames 1-3 idle - frames 4-7 run - frames 8-12 jump ans so on.. What I want to do is loop multiple subimages on event need. Thank you, I'm...
  19. C

    mouse_check_button_pressed(mb_left) not triggering fast enough on iOS

    I have a simple step function on an object with : if (mouse_check_button_pressed(mb_left)) { show_debug_message("IN!!"); } if (mouse_check_button_released(mb_left)) { show_debug_message("OUT!!"); } When i click as fast as I can in the yoyo runner with my mouse, everything works...
  20. J

    How to draw sprite in viewport (SOLVED)

    I'm using a variation of shaun spauldings fade to black code a = clamp(a + (fade * 0.009),0,1); if (a == 1) { room_goto_next(); fade = -1; } if (a == 0) && (fade == -1) { instance_destroy(); } draw_set_alpha(a); draw_sprite(spr_black,0,view_xport[0],view_yport[0]); < --- where the...
Top