Log in
Search
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.Alarms Q&A
4 posters
:: Game Making :: Game Maker Help :: Code Database
Page 1 of 1
Alarms Q&A
An alarm is a very simple concept in Gamemaker. Its one of the first things that you learn, but though they are simple there are some nagging questions that go with them. I will answer them here.
Q:How many steps in an alarm counts as 1 second?
A:One second in an alarm is equal to the room speed. For instance if your room speed is 30 then to set an alarm for 4 seconds you make the alarm equal 120 steps(30x4).
However what if you want to make the room speed change? Then all your alarms would be messed up! Well don't worry simply do this.
"Wow its so simple"
Q:How do I make my own alarms?
A:
Well that's it. If you have any questions that I should add in here please tell me!
Q:How many steps in an alarm counts as 1 second?
A:One second in an alarm is equal to the room speed. For instance if your room speed is 30 then to set an alarm for 4 seconds you make the alarm equal 120 steps(30x4).
- Code:
alarm[1]=120
However what if you want to make the room speed change? Then all your alarms would be messed up! Well don't worry simply do this.
- Code:
alarm[1]=room_speed*4
"Wow its so simple"
Q:How do I make my own alarms?
A:
- Code:
timer+=1
if timer>50{
do this
do this
do this
timer=0}
Well that's it. If you have any questions that I should add in here please tell me!
Re: Alarms Q&A
At some point in time I tried to calculate steps per second. I came up with room_speed*2. But more likely it is just room_speed. It may vary on different computers
Re: Alarms Q&A
on mine its usually 20 but at one point it was a wopping 40
fooey- Moderator
- Posts : 1422
Points : 55540
GameML Reputation : 1
Join date : 2009-07-10
Age : 29
Location : here
Re: Alarms Q&A
You must have a slow computer!
Here's a challenge try using alarms to program speific objects such as a large boss that attracks independently at different times.
Here's a challenge try using alarms to program speific objects such as a large boss that attracks independently at different times.
:: Game Making :: Game Maker Help :: Code Database
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|