GameMaker How To Make a Count Down Timer

GameMaker How To Make a Count Down Timer

29,716 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@LoretoCoorparoo
@LoretoCoorparoo - 26.01.2015 09:29

Good stuff.  What is the syntax for stopping the game and displaying the Score?

Ответить
@N79621
@N79621 - 20.03.2015 18:17

When the timer reaches zero, how do I make it so the game returns to the main menu?

Ответить
@CptSuperiors
@CptSuperiors - 07.05.2015 21:00

my question is the font??? how to do that?

Ответить
@NOMANorginal
@NOMANorginal - 17.05.2015 10:15

############################################################################################
FATAL ERROR in
action number 1
of  Step Event0
for object obj_noman:

Push :: Execution Error - Variable Get -1.myTime(100004, -1)
 at gml_Object_noman_Step_0 (line 5) - if myTime > 0 {
############################################################################################

Ответить
@berttischler4727
@berttischler4727 - 07.09.2015 00:51

I have problems with the code: myTime=myTime-delta_time/1000000Is there any other way of doing it?

Ответить
@entityofthedark2841
@entityofthedark2841 - 28.06.2016 22:52

Well thanks for this simple and clean code it helps a lot.

Ответить
@OfTheiAm
@OfTheiAm - 02.08.2016 01:17

I really need to learn code, The game maker standard drag and job causes problems and to fix them I have to find tricks that although work the same way its almost like i'm always doing it in an unconventional way and need to create waaaay too many objects that aren't visible to turn into the things I need them to at the right moment as opposed to only ONE object that acts individually for player 1 2 3 4 Instead i need to make different objects for each or they all will turn into the object meant for player 1 when it should be individual.

Ответить
@Evanski
@Evanski - 05.08.2016 09:06

Thank you so much!

Ответить
@aceko3435
@aceko3435 - 28.08.2016 15:09

I have hints in my game that show a message when u hit the hint box. is there a way i can pause the time and play it again when i click on ok at the message?

Ответить
@Frologics
@Frologics - 11.09.2016 10:34

how do i increase the rate at which the timer goes down?

Ответить
@hopcolline2599
@hopcolline2599 - 08.11.2016 12:42

Super useful, thanks a lot man !

Ответить
@ChrisTheCrab
@ChrisTheCrab - 29.11.2016 04:58

i have an ask ,do we can put an else in an else? sorry i am new at this.

Ответить
@ghb323
@ghb323 - 07.12.2016 18:15

how do you make it show Minutes:Seconds.Centiseconds?

Ответить
@extremegta5stunters317
@extremegta5stunters317 - 02.01.2017 02:30

how do we make it so when it collides with a object the timer appears and starts to count down, and when its done, the timer disappear

Ответить
@jmpnop
@jmpnop - 07.01.2017 21:20

how would i make something in which when the timer reaches 0 it resets the room?

Ответить
@AdelBarham71
@AdelBarham71 - 21.01.2017 15:29

how to restart the timer?

Ответить
@gamsa7220
@gamsa7220 - 23.04.2017 20:33

how do I do minutes (i.e 20 mins)

Ответить
@SkemeKOS
@SkemeKOS - 26.08.2017 20:14

so how exactly does delta time work? if the game really started lagging for some reason, would the timer still countdown in real time, or would it lag too, along with the game?

Ответить
@noahruitenberg2021
@noahruitenberg2021 - 11.09.2017 03:22

I followed the tutorial and it worked perfectly. I am looking for a way to make an object that when it collides with the player object
it adds ten seconds to the timer. How would i do this?

Ответить
@mig-ut3gs
@mig-ut3gs - 29.10.2017 11:59

So, first of all, I still didnt watch the entire video, so sorry if you explain this later, but how do I make the timer numbers bigger?

Ответить
@ZeraKat
@ZeraKat - 10.02.2018 22:12

the delta time thing dosen't work

Ответить
@koalatube5047
@koalatube5047 - 25.07.2018 00:19

how can i play sound when myTime =0???

Ответить
@aegis5021
@aegis5021 - 24.04.2020 00:29

I'm assuming this doesn't work for GameMaker Lite

Ответить
@WILLJEUM
@WILLJEUM - 26.07.2020 23:40

I followed the tutorial, but for some reason, instead of displaying "Time Left: " it shows "TL:" and doesnt display a countdown, I've checked through all the code and it is similar, could this be the font?

Ответить
@justinsweis8042
@justinsweis8042 - 06.10.2020 02:38

How do I continue my timer into another room? I already tried making it a persistent object

Ответить
@Lemmy4K
@Lemmy4K - 12.12.2020 04:44

Is there a way to stop the timer?

Ответить
@Bladebreak3r
@Bladebreak3r - 08.02.2021 00:28

Why doesn't mine show up? I placed the object in the room, did everything exactly the same as in here. But it doesn't draw it.

Ответить
@emilkummerfeldt9836
@emilkummerfeldt9836 - 19.03.2021 14:16

please help me. ( i know this has to do with nothing, but please help me anyways i really need help, someone ) when i walk into a wall, i can only move up and down, but that's now even all, i can only move up and down if i face to the right and not the left. if i face to the left i cant move. if i face to the right i can only move up and down. please help me someone i beg you

Ответить
@nigga2304
@nigga2304 - 09.04.2021 19:57

You're a blessing

Ответить
@ckyqq
@ckyqq - 20.04.2021 20:49

Amazing! Thank you so much!

Ответить
@andrzejvlasov1689
@andrzejvlasov1689 - 15.07.2021 14:21

like for intro sounds :)

Ответить
@andrzejvlasov1689
@andrzejvlasov1689 - 15.07.2021 14:41

The idea works even in GameMaker Studio 2 !

Ответить
@Maltebyte2
@Maltebyte2 - 31.07.2021 15:05

It always shows Time left: 0 never does a count down! im using shitty lite version! here is what i have:

Create:
myTime=9.0
showTime=myTime

Step:
if myTime > 0 {
myTime=myTime=myTime-0.03 //-delta_time/1000000
//mytime=mytime-0.03
}
else{
myTime = 0
//make gameover stuff
}
showTime=ceil(myTime)

Draw:
draw_set_color(c_white)
draw_text(50,200,"Time left: " + string(showTime))

Ответить
@ryandemboski6313
@ryandemboski6313 - 08.12.2021 03:17

exactly what i was looking for. thanks!

Ответить
@CapJackson
@CapJackson - 11.02.2022 04:34

YES! Thank you!!

Ответить