============================================================================= Sprite ============================================================================= The following properties applies the wave effect to Sprite. For Information, Refer to http://biud436.tistory.com/17
- wave : The default value is false. - wave_amp : The default value is to 0.05 - wave_length : The default value is to a maxHeight (deprecated) - wave_speed : The default value is to 0.25 - wave_phase : The default value is to 360
============================================================================= Picture ============================================================================= This plugin command would activate the wave effect to your picture:
PictureWave Start picture_id wave_speed wave_amp - picture_id : Specify the id of the game picture. - wave_speed : The available value is the number between 0 and 1. (The default value is to 0.25) - wave_amp : The available value is the number between 0 and 1. (The default value is to 0.05)
This plugin command would deactivate the wave effect of your picture:
PictureWave Stop picture_id - picture_id : Specify the id of the game picture.
These note tags allow you to set the wave effect. You have to put the note tags in the note area of the map properties.
<BATTLEBACK_WAVE : x y>
These values must replace by a real value such as 0.02 - x : the x value is the same as a waveFrequency. - y : the y value is the same as a waveSpeed.
For Example : <BATTLEBACK_WAVE : 0.02 0.25>
When using Yanfly's Action Sequence Pack 1, you can enable its filter too. This function has the pointer of the Spriteset_Battle and easy to use.
eval: $gameTemp.setBattleBackWaveEffect(cond, waveAmp, waveSpeed); - cond : Specify true or false whether the wave effect is used. - waveAmp : the default value is to 0.02 - waveSpeed : the default value is to 0.25
============================================================================= Timing ============================================================================= if you want to fade-out or fade-in the properties of the wave effect applied to the picture, Let's call the following function.
dt stands for delta time, The delta time parameter is the elapsed time since the last frame. if you omit it, The wave filter will measure the elapsed time automatically and fill it (In fact, It will be filled with the current time value)
To get started with implementing this, add this code just using the script command.
var _s, _p, _e, _r; _s = new Point(0.0, 0.0); _p = new Point(0.07, 0.25); _e = new Point(0.0, 0.0); _r = waveUtils.quadraticBezier(_s, _p, _e); $gameScreen.startWave(1, _r.x, _r.y);
The value of the wave speed is started with 0.0 and then increased until 0.07 and then decreased to 0.0. The value of the wave amplitude is also started with 0.0 and then increased until 0.25 and then decreased to 0.0.
if you omit it, The wave filter will measure the elapsed time automatically Free for commercial and non-commercial use The MIT License Copyright (c) 2016 biud436 Free for commercial and non commercial use.