wave flag
This commit is contained in:
parent
8287cf609a
commit
6d9edc0dc2
7 changed files with 168 additions and 26 deletions
17
scripts/gui/WaveFlag.cs
Normal file
17
scripts/gui/WaveFlag.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using Godot;
|
||||
|
||||
|
||||
public partial class WaveFlag : TextureRect
|
||||
{
|
||||
public int waveIndex;
|
||||
public double anim_time;
|
||||
public void HugeWaveApproached(int what)
|
||||
{
|
||||
if (waveIndex == what)
|
||||
{
|
||||
var tween = CreateTween().SetEase(Tween.EaseType.Out).SetTrans(Tween.TransitionType.Cubic).SetParallel();
|
||||
tween.TweenProperty(this, "anchor_top", 0.1, anim_time);
|
||||
tween.TweenProperty(this, "anchor_bottom", 0.1, anim_time);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue