Create a sprite by loading the bitmap image and set the wave to true. The following code applies the wave effect to Sprite.
// Create Sprite
var bitmap = ImageManager.loadSvEnemy('Death');
var sprite = new Sprite(bitmap);
SceneManager._scene.addChild(sprite);
// Enable Wave
sprite.wave = true;
It is possible to use the Sprite Wave Properties like RPG Maker VX Ace.
wave : The default value is false.
wave_amp : You must set the the value is a floating point number between
0 and
1
wave_length : You must set the value is a number between
0 and
max-height of the sprite.
wave_speed : The default value is to
0.25
wave_phase : The default value is to
360
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 speed of the wave effect. if the value is to 0, the wave speed will slow down, if the value is 1, it will make a speed is the fastest. The available value is the number between 0 and 1. The default value is to 0.25
- wave_amp : Amplitude of the wave. if you are set the Amp value with the large value, The image may not be visible. So you must set it to the appropriate value. Likewise, 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.​
The following plugin commands apply the wave effect to Tilemap. This plugin contains these six types them.
This plugin commands allow you to enable or disable the wave effect.
Tilemap_Wave
Enable
Tilemap_Wave
Disable
This plugin command allows you to set the speed of the wave effect. the x is a floating-point number between 0 and 1. Default value is to
0.25
Tilemap_Wave waveSpeed
x
This plugin command allows you to set the amplitude of the wave effect. the x is a floating-point number between 0 and 1. Default value is to
0.02
Tilemap_Wave waveFrequency
x
This plugin command allows you to set the UV speed of the wave effect. the x is a floating-point number between 0 and 1. Default value is to
0.25
Tilemap_Wave UVSpeed
x
Note tags :
These note tags allow you to enable or disable the wave effect.
<WAVE true>
<WAVE false>
This note tag allows you to set the amplitude of the wave effect.
the x is a floating-point number between 0 and 1.
the default value is to 0.02
<WAVE_AMP x>
This note tag allows you to set the speed of the wave effect.
the x is a floating-point number between 0 and 1.
the default value is to 0.25
<WAVE_SPEED x>
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