08-26-2008, 01:00 PM
Waiting by Seconds or by Frames
by Ánemus
Aug 26, 2008
by Ánemus
Aug 26, 2008
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
Code:
Code:
=begin
/////////////////////////////////
/ Wait Seconds Instead of Frames/
/////////////////////////////////
By Ánemus
Note: This is a simple script, it's just an idea that I got and tried, and
worked, so is not a really time consuming script. I just made it so you can
use it with switches. If you want to add me to the credits, it's up to you,
and that doesn't mean that you can say it's yours.
=end
#OPTION:
#ID of the switch that makes the Seconds to work
SWITCH = 1
class Interpreter
def command_106
if $game_switches[SWITCH ]
@wait_count = @parameters[0] * Graphics.frame_rate
else
@wait_count = @parameters[0] * 2
end
return true
end
end
Instructions:
To make the script work, put it above the MAIN page.
Read the green letters for customization.
This funciton works with the older system of frames, just, whenever you want the wating to work in Seconds activate the Switch that you have setted in the options of the Edit and it will wait seconds. If you want to go back to frames, disactivate the switch.