No More Flash Disaster
No More Flash Disaster v1.0By FeelZoR
Free for Commercial & Non-Commercial Projects
No Credits required, but highly appreciated!
You can find a more in-depth version of the TOS here.
Introduction & Feature
Have you ever tried to put many damaging tiles to... for example... make a poisonous swamp?
Then you must've realized how painful it is for the eyes... DAMN, it's epileptic as f***!
NMFD is here to avoid that disaster. No more eyes destroyed by... a red violent flash. It delays the flashes so you can put a full poisonous swamp without any sacrifice. You just have to plug it and play!
The default delay is set to one second, but you can change it at line 37.
How to Use
Just Copy it & Paste it in the script section of RPG Maker VX Ace!
Code
Spoiler Code:
if true # Change "true" to "false" if you want to disable it
################################################################################
# No More Flash Disaster #
# By Feelzor #
# #
# • DO NOT REMOVE OR ALTER THIS HEADER. #
# #
# ---------------------------------------------------------------------------- #
# #
# • What this script does: #
# #
# When you put a lot of damaging tiles on the ground, you can have a lot of #
# flash effects, making your game epileptic and not enjoyable at all. #
# This script is here to delay the next red flash when you walk on these #
# tiles. By default, it's at maximum 1 flash per second. #
# #
# If the delay you put in the settings is too long, I cannot guarantee it #
# won't interfer with the poison flash delay. #
# #
# ---------------------------------------------------------------------------- #
# #
# • Just plug and play! #
# No configuration needed but you can modify the FLASH_TIME to change how the#
# script works. #
# #
# ---------------------------------------------------------------------------- #
# #
# • Free to use in any project: Commercial or Non-Commercial. #
# • Credits not required but appreciated! #
# #
# If you wish to credit, just write "No More Flash Disaster by Feelzor" #
# somewhere. #
# #
################################################################################
module NoMoreFlashDisaster
FLASH_TIME = 1.0 # Time necessary between two flashes (in seconds)
end
class Game_Screen
#--------------------------------------------------------------------------
# • Start Flash (for Poison/Damage Floor)
#--------------------------------------------------------------------------
def start_flash_for_damage
@flash_time ||= NoMoreFlashDisaster::FLASH_TIME
@last_time ||= Time.now - @flash_time
if Time.now - @last_time >= @flash_time
@last_time = Time.now
start_flash(Color.new(255,0,0,128), 8)
end
end
end
end
Credits and Thanks
[*]FeelZoR for making it (it's me!)
[*]HyddenTroll for asking me to make this for his project.
[*]Degica for organizing the IGMC, which made me discover RMVXA
Author's note
I hope that this time, this isn't a functionality already made in RMVXA :')
本贴来自国际rpgmaker官方论坛作者:Feelzor处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/no-more-flash-disaster.86313/
页:
[1]