Topic:   Is there a maximum timer?   (Read 11102 times)


0 Members and 1 Guest are viewing this topic.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Is there a maximum timer?
« on: May 24, 2011, 07:33:53 PM »
Is there a maximum to how long a timer can be? I want to make a 7.5 million year long timer, for the fun of it.
« Last Edit: May 24, 2011, 07:34:30 PM by zoo804 »
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Is there a maximum timer?
« Reply #1 on: May 25, 2011, 12:52:18 AM »
I don't know, why don't ya code one and tell us when it ticks?

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Is there a maximum timer?
« Reply #2 on: May 25, 2011, 08:30:48 AM »
Quote
Is there a maximum to how long a timer can be?
I don't know, but my guess would be 32767. Since 100 = 1 second, that would be 327.67 seconds or 5.4 minutes.



Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Is there a maximum timer?
« Reply #3 on: May 25, 2011, 08:44:20 AM »
Well I just tried 33000 and it worked, so maybe I'll try 360000 and come back in an hour and see what happens.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Is there a maximum timer?
« Reply #4 on: May 25, 2011, 09:08:30 AM »
OK. With 360000 it still only waits a little more than 5 minutes, so while there's no error, it looks like the most seconds a timer can be is 32767 even if you use a higher number.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Is there a maximum timer?
« Reply #5 on: May 25, 2011, 05:40:12 PM »
What happens if you nest an ON KEYDOWN structure within a TIMER event incorporating a negative trigger value? Now this I gotta see...
I survived the spammage of 2007

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Is there a maximum timer?
« Reply #6 on: May 25, 2011, 06:42:51 PM »
Inverted blackhole... :o

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Is there a maximum timer?
« Reply #7 on: May 26, 2011, 04:02:53 PM »
Turns out there's a maximum for a variable too, so my other idea didn't work either...
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Is there a maximum timer?
« Reply #8 on: May 26, 2011, 05:52:20 PM »
Keep your number as a string. Strings can be up to 255 characters. That's a long number...
"1254689756321159876453159845623789512365942158963215789563215125468975632115987645315984562378951236594215896321578956321512546897563211598764531598456237895123659421589632157895632151254689756321159876453159845623789512365942158963215789563215845623197658431"

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: Is there a maximum timer?
« Reply #9 on: May 26, 2011, 06:27:35 PM »
Quote
Keep your number as a string. Strings can be up to 255 characters. That's a long number...
"1254689756321159876453159845623789512365942158963215789563215125468975632115987645315984562378951236594215896321578956321512546897563211598764531598456237895123659421589632157895632151254689756321159876453159845623789512365942158963215789563215845623197658431"

Fail.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Is there a maximum timer?
« Reply #10 on: May 26, 2011, 07:53:42 PM »
But if you do a string$ = string$ - 1 wont it take away the character of one?
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Is there a maximum timer?
« Reply #11 on: May 26, 2011, 10:22:03 PM »
You'd have to do some advanced string manipulation to get it to calculate right.

Fail? Seemed more like a clever win to me. ;)

FrankJScott


  • GMG-er

  • **

  • no avatar

  • Posts: 431

  • Gan is so awesome.
Top Rated Product Guide
« Reply #12 on: January 02, 2024, 03:20:44 PM »
Please try Google before asking about Recommended Product Guide 960b21b

FrankJScott


  • GMG-er

  • **

  • no avatar

  • Posts: 431

  • Gan is so awesome.
Top Rated Product Website
« Reply #13 on: January 06, 2024, 03:15:21 PM »
Please try Google before asking about New Product Website ef90e75

FrankJScott


  • GMG-er

  • **

  • no avatar

  • Posts: 431

  • Gan is so awesome.
Best Merino Wool Website
« Reply #14 on: January 07, 2024, 09:53:39 AM »
In reply to the lady inquiring about woolx mens, merino wool base layer bottoms mens, merino wool bottoms, intraknit merino 250 thermal bottom, mens merino 250 base layer, heavyweight merino wool long johns, merino wool blend base layer, heavyweight merino wool leggings, wool base layer hunting, smartwool merino thermals, drirelease merino blend paradox, ladies merino wool thermals, merino thermal base layer, merino wool base layer set, baabaa merino base layer, merino thermals, merino wool sleeveless base layer, merino wool base layer patagonia, smartwool 250 mens, icebreaker bodyfit 260,  I suggest this her response for merino wool base layer for smartwool mens base layer 250, wool long johns womens, smartwool 250 mens base layer, north face merino wool base layer, intraknit smartwool, smartwool women's merino 250 baselayer pattern bottom, ladies merino wool base layer, best merino wool hunting base layer, smartwool 250 base layer mens, layering with merino wool, merino wool mid layer women's, icebreaker base layer mens, odlo merino wool base layer, womens smartwool merino 250, ripzone merino baselayer, rapha merino base layer short sleeve, men's merino 175 everyday long sleeve crewe thermal top, smart wool base layer mens, mens 100 merino wool base layer, wool blend base layer, also. See More High Rated Merino Wool Site 4cbe06_