Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Game Maker Tutorial: How to make a clock that shows you how long you have played [HD]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,480
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 22, 2009

How to make a clock that shows you how long you have played in Game Maker

roomSpeed = argument0

timePiece = floor(global.played/roomSpeed)

hour = floor(timePiece/3600)
timePiece -= hour*3600
minute = floor(timePiece/60)
timePiece -= minute*60
second = timePiece

if hour (you know)=10 {hour = string(hour)}
else {hour = string(hour) hour = "0"+hour}

if minute (you know)=10 {minute = string(minute)}
else {minute = string(minute) minute = "0"+minute}

if second (you know)=10 {second = string(second)}
else {second = string(second) second = "0"+second}



global.time = " "+hour+":"+minute+":"+second


PS: Watch the movie to see what to replace (you know) with, i couldnt have that character in video description :s

Category:

Film & Animation

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (norisak)

  • Thumbs up if u muted this song while watching

  • @despenseren Your right, this song is overused now, it wasn't when i created the video, will change it now.

  • guyz if you want the code on the script to work than erase the (you know) thingy in the script which this dumbass added in the description

  • @Prasantrules Im not a dumbass, YouTube didn't allow me to put "less than", or "larger than" characters in the description.

  • What program did u use to flim this?

    AWESOME though 5/5!!!

  • @tehgamesreviewer I used Hypercam 2 and recorded the full screen.

    Then I use sony vegas and use the Event Pan/Crop zoom in so it gets easier to see.

see all

All Comments (36)

Sign In or Sign Up now to post a comment!
  • alot of thanks

  • @PerryEnix

    also ______________________________­_____________

    ERROR in

    action number 1

    of Step Event

    for object obj_time:

    Error in code at line 2: timepiece = floor(global.played/roomSpeed)

    at position 33: Unknown variable roomSpeed

  • @stewieworld this similar thing happened to me -.- i got ______________________________­_____________

    ERROR in

    action number 2

    of Draw Event

    for object obj_time:

    Error in expression:global.timePiece position 8: Unknown variable timePiece

  • thats "(you know)" FAIL!!!...

    but thanks :P

  • #LOL

  • Thanks so much for this. :D

  • @norisak #LOL htats what i use because it's free

  • ERROR in

    action number 1

    of  Step Event

    for object clock:

    In script clock:

    Error in code at line 3: timePiece = floor(global.played/roomSpeed) ^

    at position 34: Unknown variable roomSpeed

    you suck!

  • Thanks!

  • @norisak nice. you changed the song :D

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more