Hello everyone, i have a shooting mechanic i'm trying to get down for game, and i'm trying to use an alarm to do what i want. I'm having a hard time, was wondering if someone could maybe explain what i'm doing wrong, or explain how to fix what i'm doing.
Also, it is my first time posting, i...
So I'm making this falling block game but I've hit a snafu. Basically, after blocks have matched with neighbours and been destroyed I can't get the blocks above to fall down into their new spots like I want them to.
The "cube_list_pop" script populates a list with all the instances of blocks on...
I'm trying to make an animation play after the player's HP runs out and before the player restarts the level. But even though I have an alarm set, the player restarts right after the HP runs out, not giving the animation time to play and bypassing the alarm. Here is the code I'm using. Is there...
GM Version: GMS2
Target Platform: ALL
Download: https://www.dropbox.com/s/6ntwlhiqkfoqiah/delta-timing.yyz?dl=0
Links: N/A
Summary:
Delta-timing is used to make sure the game doesn't actually slow down due to low FPS. This tutorial teaches you how to implement delta-timing and also use it with...
Hey, I’m relatively new to GMS and I was wondering how to make a time in between two texts that appear onscreen.
Example:
“Hello, there!”
(Wait three seconds)
“Welcome to this test!”
I understand I would probably need to use alarms, but I’m not sure how.
I'm having trouble getting this sprite to start and stop when it should. I was wondering if anyone could help?
Basically I've got a window object that, if it's open and I try to walk through it, he jumps through it. The Alarm[0] code resets 'timer' to 0 and sets the trig_jump% vars to false...
So I'm VERY new to GM and coding in general (unless you count a strange enjoyment in making excel spreadsheets ;)) I downloaded the trial to play with the DnD but quickly figured out that it was going to be less complicated in the long run to learn the code.
Forgive me if I give a little too...
Hi, Good day!
scenario: obj_player collides with obj_slow
intended effect: destroy obj_slow, then reduce obj_player move speed and return to normal(default set) move speed after about 3 sec.
i have set obj_player move speed to 2 in the create event.
i want to set an alarm in which it will...
Hi there!
I have the habit of using step-based timers, such as:
CREATE EVENT:
timer = 0;
STEP EVENT:
timer ++;
if (timer >= room_speed) {
//do stuff
timer = 0;
}
But GMS/GML has the built-in Alarm System, which does pretty much the same.
Anyone knows if using alarms is...
I'm making a "rolling shooters" for practice and I want to know how I could use the "alarms". I read the GameMaker's guide and I did not understand anything.
What I want to do is when the player shoots he has to wait 2 or 3 seconds to be able to shoot again. What have I to put in there?
My...
Greetings,
In specific circumstances, I've been using alarms as alternative create events.
The circumstances being that I require object A to create object B and object B must do some calculations in the create event with variables specified by object A. However, the create event for object B...
Hello everyone,
I want to create a new instance of an enemy_obj at a random position with a delay of 2 seconds when it gets destroyed.
This is my code and the alarm does not work so far:
DESTROY EVENT
alarm[0] = 2*room_speed;
show_debug_message("enemy instance destroyed!");
ALARM 0 EVENT...
In my game there is water which is deadly to the player, the player has 3 hearts. What I'm trying to achieve but cannot figure out is how to minus a heart after 1 second of the player being in the same x/y position of the water. I will post my code to show what I tried to do.
If more code is...
I am new to Game Maker and I am currently giving the Lite version a try before purchasing a full version. I apologize in advance if my naming is not conventional because I do not yet know the norms of naming sprites and objects and such. I also don't know how to make code look like code on my...
Hey everyone, so the game I’m trying to make is pretty simple. The player is a ghost and has to possess all of the humans in the room before it can move on. I want it to where the player has to hold down F for 3 seconds while making contact with the human before the human is possessed. Right now...
(In Destroy (for an object)) alarm[0] = 120
(In Alarm 0) room_goto_previous()
The room change works if i just put "room_goto_previous" in the destroy without the alarm so i know that it is being activated. I have tried all sorts of things but nothing seems to make the alarm work. I have also...
Good evening,
Please I need help with this. I have gotten alarms to work in the past but I can't seem to get this one to work.
I am trying to create a count down timer that counts to zero and awards the player a life at the end then it counts down again and rewards the player another life at...
Hey, guys, I am trying to find a way to limit the firing rate for a gun in my game (you are the gun so shooting is how you move) I noticed there isn't any wait function, and I have tried alarms but even with this code
mouse_check_button_pressed(mb_left)
It just constantly fires anyone have any...
I'm making a security camera that pans back and forth on a series of alarms and rotates a triangle for use as a "vision-cone". I'm also letting the player take control of the camera by pressing 'C' and then manually rotating it with the arrow keys. 'C' toggles the state of the "camCon" variable...
Hi Y'all!
It's my first time posting so please be gentle on me if I explain this poorly.
I am looking for better ways to trigger alarms as I am currently placing them in the step event and they keep getting reset and never actually activating.
Below is a sample of my code that I am getting...