Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Play this at:
- http://orteil.dashnet.org/igm/?g=B3KcucJv
- This paste is at:
- https://pastebin.com/B3KcucJv
- */
- Let's make a game!
- name:Timer
- by:Simanalix
- desc:This is to show you how to make a decent timer in Idle Game Maker. It does seconds, minutes, hours, and days.
- Layout
- Buttons
- *Reset
- on click:seconds is 0
- *Elapsetime
- name:Elapse Time
- desc:Double the amount of time that has passed.
- on click:yield seconds seconds
- Resources
- *second|seconds
- text:[this%60] sec
- name:second|seconds
- *minute|minutes
- text:[this%60] min
- name:minute|minutes
- is always:floor(seconds/60)
- *hour|hours
- text:[this%24] h
- name:hour|hours
- is always:floor(seconds/3600)
- *day|days
- text:[this] d
- name:day|days
- is always:floor(seconds/86400)
- *week|weeks
- text:[this] w
- name:week|weeks
- is always:floor(seconds/604800)
- Upgrades
- *Timepasses
- name:Time is passing, always.
- 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.
- on tick:yield second
- Achievements
- *Dosomething
- name:Do something else already
- 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