mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Patterns tweaks
This commit is contained in:
parent
4be64cf7ec
commit
a430554e27
7 changed files with 69 additions and 22 deletions
|
|
@ -22,7 +22,7 @@ public partial class SimpleMovementPattern : AttackPattern
|
|||
|
||||
Vector2 targetPosition = (Boss?.HomePosition ?? boss.GlobalPosition) + relativeTargetPosition;
|
||||
|
||||
tween.TweenProperty(Boss, "position", targetPosition, moveDuration)
|
||||
tween.TweenProperty(Boss, "global_position", targetPosition, moveDuration)
|
||||
.SetTrans(transitionType)
|
||||
.SetEase(easeType)
|
||||
.Finished += () => isComplete = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue