Save Screen Tint
2018.01.28
by Shaz
Introduction
This simple little plugin lets you save the current screen tint and restore it at a later time. Useful when you want to temporarily change the screen tint, but don't know what to change it back to (for example, calling a 'sleep' common event that darkens the screen, from events on maps that might be inside, outside, in a dungeon, which all have different screen tints).
How to use
Add plugin to your js/plugins folder - name should be Shaz_SaveScreenTint.js - and enable in plugin manager.
Plugin Commands
SaveScreenTint - saves the current screen tint (this gets saved to your save game, so the player can save & load before restoring).
RestoreScreenTint - restores the last-saved screen tint, with no delay.
RestoreScreenTint 5 - restores the last-saved screen tint, with a 5 second duration.
RestoreScreenTint 5 true - restores the last-saved screen tint, with a 5 second duration, pausing until the restore is complete.
The duration can be a formula to be evaluated - make sure there are no spaces.
Plugin
Download from pastebin
make sure to save it as Shaz_SaveScreenTint.js
Credit
- Shaz
Terms
- free for use in commercial games
- do not post elsewhere - link back to this page
本贴来自国际rpgmaker官方论坛作者:Shaz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/save-screen-tint.90510/