Search found 2 matches
- Sun Mar 10, 2024 5:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: Countdown Timer with Time Extension or Time Penalty Feature
- Replies: 2
- Views: 188
Re: Countdown Timer with Time Extension or Time Penalty Feature
Alright, I found a different solution which works well as far as I can see. First, I declare this in init. init python: def timer_mod(time_mod): global time_remaining time_remaining += time_mod The time_remaining variable is declared somewhere else as default. default time_remaining = 40 Then I use ...
- Sat Mar 09, 2024 4:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Countdown Timer with Time Extension or Time Penalty Feature
- Replies: 2
- Views: 188
Countdown Timer with Time Extension or Time Penalty Feature
In the VN I'm developing I need a countdown timer for a planned gameplay purpose. For now I use this code I picked from the forum: screen countdown(timer_range, timer_jump): zorder 9 default end_time = time.time() + timer_range default current_time = time.time() timer 0.05 repeat True action If( cur...