mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Boss Animation
This commit is contained in:
parent
2e01cd19e2
commit
08cc298a81
9 changed files with 139 additions and 13 deletions
|
|
@ -21,11 +21,16 @@ public partial class SimpleMovementPattern : AttackPattern
|
|||
isComplete = false;
|
||||
|
||||
Vector2 targetPosition = (Boss?.HomePosition ?? boss.GlobalPosition) + relativeTargetPosition;
|
||||
|
||||
|
||||
boss.ChangeSpriteDirection(-(boss.GlobalPosition - targetPosition));
|
||||
tween.TweenProperty(Boss, "global_position", targetPosition, moveDuration)
|
||||
.SetTrans(transitionType)
|
||||
.SetEase(easeType)
|
||||
.Finished += () => isComplete = true;
|
||||
.Finished += () =>
|
||||
{
|
||||
isComplete = true;
|
||||
boss.ChangeSpriteDirection(Vector2.Zero);
|
||||
};
|
||||
}
|
||||
|
||||
public override void UpdatePattern(double delta) { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue