Save-Point
Wednesday's Timer: The Centisecond Alternative - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Wednesday's Timer: The Centisecond Alternative (/thread-7277.html)



Wednesday's Timer: The Centisecond Alternative - DerVVulfman - 06-07-2018

Wednesday's Timer:
The Centisecond Alternative

Version: 1.0


Introduction

This script permits you to use your PC's actual time in order to create a more accurate pause system instead of using the RGSS scripted counter method. It does this by way of Ruby's built-in Time class to acquire the current time.


Script

"Look Under Here (CLICK)"


Instructions

In a nutshell, paste this into your script library below Scene_Debug. And use the script call 'centi_wait(time)" where time is a numeric value. A value of 100 in this call will make a 1-second delay, and a value of 2350 will make a 23 1/2 second delay.


Compatibility

Designed solely for RPGMaker XP right now. And it rewrites three methods, two in Game_Character and one in the Interpreter class. Notes have been added in the script for any would-be scripter.


Terms and Conditions

Free for use, even in commercial games.