Jump to content


Photo

>>>timer Lib<<<


  • Please log in to reply
41 replies to this topic

#21 mrsmes

mrsmes

    GMC Member

  • GMC Member
  • 991 posts
  • Version:GM:Studio

Posted 28 August 2007 - 06:55 AM

you wanted a request how about a model resources section for game maker in the editor as a extension so you can load models and a model editor to create models would be nice.
  • 0

#22 name

name

    GMC Member

  • GMC Member
  • 1427 posts

Posted 30 August 2007 - 03:49 AM

This is nice! ::lmao::
  • 0

#23 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 31 August 2007 - 11:58 AM

thx for the comments, its nice to see one of my libs is being used
  • 0

#24 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 31 August 2007 - 12:00 PM

srry, double post

Edited by isaacqwerty, 31 August 2007 - 12:01 PM.

  • 0

#25 Bass.EXE

Bass.EXE

    Transcendent: B

  • New Member
  • 1639 posts

Posted 30 September 2007 - 07:38 PM

It's nice, but flawed. When you count down with the timer and check if it's at 0, it takes 1:00 as 0, so whatever you want to happen at 0:00 happens at 1:00.

timehour*60*60+timemin*60+timesec

timehour=0
0*60=0

timemin=1
0*60+1=1

timesec=0
1*60+0=60

I honestly have no clue how this could've gone wrong if it thinks that 60 is 0.

you wanted a request how about a model resources section for game maker in the editor as a extension so you can load models and a model editor to create models would be nice.


Are you even talking about a timer?

Edited by Bass.EXE, 30 September 2007 - 07:39 PM.

  • 0

#26 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 22 November 2007 - 03:02 PM

thats... odd... ill look into it srry for not replying forever, took a long break from gm but im back.

60=0, got it...
  • 0

#27 Bass.EXE

Bass.EXE

    Transcendent: B

  • New Member
  • 1639 posts

Posted 12 January 2008 - 12:01 AM

Got it yet?
  • 0

#28 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 12 January 2008 - 09:15 PM

srry i kind of stopped working, i think i did finish it, i just didnt put it up... 1 sec let me see if my version works...
  • 0

#29 Blue Leader

Blue Leader

    GMC Member

  • New Member
  • 467 posts

Posted 12 January 2008 - 09:40 PM

It sounds like this could be pretty useful, I must admit. :)
  • 0

#30 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 13 January 2008 - 01:29 AM

got 2 bugs in one fix...
you probably noticed(if u didnt, u r blind) that the draw light by time thing, wasnt working well with the turn the midnight/noon hours.
Now i redid the algebra behind it and hopefully(it is tested, but i cant go through every 1440 minutes in a day) it will no longer be any problem.

the other, the checking time, has been fixed by doing something a bit different, i also did some double checking on the stop/start, it wasnt stopping but was actually changing direction... weird...

anyway, i hope everyone enjoys this batch of updates
  • 0

#31 game_obsessed

game_obsessed

    GMC Member

  • New Member
  • 590 posts

Posted 14 January 2008 - 05:59 AM

I find this very handy but i have 1 request:
In the game i'm making, i want it to time how long it takes to finish the level, and the quickest scores go in the high-scores. So would there be a way to set the time to a variable?

If you could do this, it would be extremely helpful.
;)
  • 0

#32 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 15 January 2008 - 03:30 AM

k, i have a few ideas for how to do that, including using what is already there but making the variable accesible as minutes or seconds...
hm... ill get that up asap
  • 0

#33 mykl777

mykl777

    GMC Member

  • New Member
  • 5 posts

Posted 20 February 2008 - 01:19 AM

this is a great little lib, very helpful. I'm not much of a noob to game creation, but am very noob when it comes to gm. this helps, and makes my life a bit easier. a question, since you made the timer lib, could you possibly add or create a second lib that controlled time? By this I mean a lib where you can do the following...

create a calander type interface. I want to include into my game a setup where in the main character's status menu it tells the second/minute/hour/day/month/year

and make it to where i could custom all of these things. IE: 40 seconds in a minute, 50 minutes in an hour, 30 hours in a day, 40 days in a month, 18 months in a year.

i hope i am making my request clear. also the ability to rename each of those things.

I know this is a lot to ask, but I think it would be useful to alot of people.

thanks........
  • 0

#34 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 24 February 2008 - 01:50 AM

like a different world, therefore different rotation speed and revolution speed(around the axis or sun respectively)...
hm... thats definately a new idea... yes i could make that work id have to edit the numbers, but thats about it.
i need to know how many seconds are in a minute, minutes in an hour. if you want days as well... oh geez. if you want it reletive to their clock, you(and therefore me) have a big problem, especially if it doesnt add up to the same seconds ea day.


anyway...
UPDATE!
now saves time into a variable in either the form (...S)SS or HH:MM:SS

Edited by isaacqwerty, 24 February 2008 - 03:43 AM.

  • 0

#35 baker411

baker411

    GMC Member

  • New Member
  • 34 posts

Posted 10 September 2008 - 02:04 AM

Im having a problem with this and im not sure what the deal is... Im trying to make it how if u click slot 1 it creates an object, its doing that but when i click the header sprite instead of the slot. Help please.
  • 0

#36 mrsmes

mrsmes

    GMC Member

  • GMC Member
  • 991 posts
  • Version:GM:Studio

Posted 16 September 2008 - 09:18 AM

Thanks, this will really, make it a lot easier, to make eliminator formats, in top down drag racing games, now, sweet.
  • 0

#37 takis76

takis76

    GMC Member

  • New Member
  • 56 posts

Posted 10 June 2009 - 08:14 PM

Could with this time able to have , smaller resolution of time , for example not second , but milliseconds?
If yes , how?
Could you provide a code for this.
If no
Request for the next version.


Thank you :)
  • 0

#38 isaacqwerty

isaacqwerty

    GMC Member

  • New Member
  • 343 posts

Posted 12 August 2009 - 02:13 AM

I might be able to make a more accurate one but i may have to enter the range of pro version...

I would rather not do that.

other than that i might be able to get it down to like .02 of a second... if you have room speed of 50
I am limited to how many steps every second (FPS)
So, the lowest time I can go is 1/(your room speed)
  • 0

#39 6nethack9

6nethack9

    GMC Member

  • GMC Member
  • 935 posts
  • Version:GM8

Posted 09 September 2009 - 09:53 AM

Hey!
Nice LIB!
I think i'll use it!
Thanks!
:)
  • 0

#40 Jarquafelmu

Jarquafelmu

    GMC Member

  • New Member
  • 4 posts

Posted 17 April 2010 - 07:43 PM

Not sure if this is still being supported but I was having a problem that I was hoping that could be fixed.

I am using gm8 and when I try to use the command "saves time to variable" in my program i get this:

[codebox]
___________________________________________
ERROR in
action number 1
of Mouse Event for Left Button
for object obj_bomb:

Error in code at line 3:
   execute_string(string(argument1)+"="+string(timecheck))
                                                ^
at position 47: Unknown variable timecheck
[/codebox]

When I use your timer program written in gm6 it works fine. But I can't seem to get it to work in mine.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users