Skip to content

Commit

Permalink
Added tweenBothScales
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Jun 4, 2024
1 parent a6c7a98 commit 79e305a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dn/heaps/HParticle.hx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ class HParticle extends BatchElement {
this.y = y;
}

public inline function tweenBothScales(from:Float, to:Float, durationS:Float) {
scaleX_tween.start(from, to, durationS);
scaleY_tween.start(from, to, durationS);
}

public inline function scaleTo(w:Float, h:Float) {
scaleXTo(w);
scaleYTo(h);
Expand Down

0 comments on commit 79e305a

Please sign in to comment.