Simanalix343

Time Tracker Game

May 27th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. /*
  2. Play this at:
  3. http://orteil.dashnet.org/igm/?g=B3KcucJv
  4. This paste is at:
  5. https://pastebin.com/B3KcucJv
  6. */
  7. Let's make a game!
  8. name:Timer
  9. by:Simanalix
  10. desc:This is to show you how to make a decent timer in Idle Game Maker. It does seconds, minutes, hours, and days.
  11. Layout
  12. Buttons
  13. *Reset
  14. on click:seconds is 0
  15. *Elapsetime
  16. name:Elapse Time
  17. desc:Double the amount of time that has passed.
  18. on click:yield seconds seconds
  19. Resources
  20. *second|seconds
  21. text:[this%60] sec
  22. name:second|seconds
  23. *minute|minutes
  24. text:[this%60] min
  25. name:minute|minutes
  26. is always:floor(seconds/60)
  27. *hour|hours
  28. text:[this%24] h
  29. name:hour|hours
  30. is always:floor(seconds/3600)
  31. *day|days
  32. text:[this] d
  33. name:day|days
  34. is always:floor(seconds/86400)
  35. *week|weeks
  36. text:[this] w
  37. name:week|weeks
  38. is always:floor(seconds/604800)
  39. Upgrades
  40. *Timepasses
  41. name:Time is passing, always.
  42. desc:So far, [?seconds>=86400|[days] day|][?!(days=1) and seconds>=86400|s|][?seconds>=86400|, |only ][?seconds>=3600|[hours%24] hour|][?!(hours%24=1) and seconds>=3600|s|][?seconds>=3600|, |][?seconds>=60|[minutes%60] minute|][?!(minutes%60=1) and seconds>=60|s|][?seconds>=60|, and |][seconds%60] second[?seconds%60=1| has|s have] passed.
  43. on tick:yield second
  44. Achievements
  45. *Dosomething
  46. name:Do something else already
  47. Desc:10,000 seconds is a long time to do nothing, unless you used the “elapse time” button.
Add Comment
Please, Sign In to add comment