VXACETimer - Call methods after X frames
BMM_Archive · July 15, 2026
Original Source
- Original title: Timer - Call methods after X frames
- Original author: Galenmereth
- Original date: December 5, 2014
- Source thread: https://forums.rpgmakerweb.com/threads/timer-call-methods-after-x-frames.34671/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSS3 Scripts (RMVX Ace)
Summary
{ "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous",
Archived First Post
Ever wanted to call a sound effect in your scripts after, say, 30 frames have passed? Or how about wait 60 seconds before you render a sprite with the bitmap Cache.system("gone_4_60_s")? Well now you can, with this teeny tiny and easy-to-use script!
Introducing the fantabulous TDD::Timer.call_after_frames!
You use it like this:
TDD::Timer.call_after_frames( :frames => Number, - Number of frames to wait before calling :method bserver => Object, - Object for which method should be called :method => :symbol, - Method to call on bserver Object arams => Object, - OPTIONAL: Any object you wish to pass to the :method)Real world example:
One of those calls look like this:
# Audio: Play fall againTDD::Timer.call_after_frames(observer: self, method: lay_shatter_sfx, frames: 170)
You know the drill: Put it somewhere below ▼ Materials but above ▼ Main Process
You can get it on github directly here; this link will always be up-to-date with the latest stable version:
https://raw.githubusercontent.com/TorD/TDD-Timer/master/script.rb
If you want to follow the development, or report bugs, please use the GitHub repository found here:
https://github.com/TorD/TDD-Timer
Free for non-commercial and commercial use. Credit greatly appreciated but not required. Share script freely with everyone, but please retain the description area unless you change the script completely. Thank you.
Galenmereth / Tor Damian Design
Feeling generous?
If you would like to give me a small tip to help me spend even more time making and maintaining these free scripts, do consider supporting me on Gratipay. Any and all support will be greatly appreciated.
Downloads / Referenced Files
RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.
License / Terms Note
Free for non-commercial and commercial use. Credit greatly appreciated but not required. Share script freely with everyone, but please retain the description area unless you change the script completely. Thank you. Galenmereth / Tor Damian Design
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...