You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure I found a bug in the ScaleTo action; the isComplete method checks tx.scale.y against the x-axis, rather than the tx.scale.x against the x-axis, and so the action will never complete if, for example, you're only scaling the x-axis. The bug is on this line; I also cloned the repo, wrote a test, watched it fail, and then fixed the isComplete method; I'm opening this issue first since the PR checklist asks you to open an issue first. 😄
Steps to Reproduce
actor.scaleTo(vec(2,1),vec(1,1)).scaleTo(vec(3,1),vec(1,1));// This will never run
Expected Result
The first scale would complete, and then the second scale would run and complete.
Actual Result
The first scale executes, but never believes it's completed, and so the second scale never runs.
Environment
browsers and versions: Chrome, but this is a problem in any browser; the line of code that checks the x-axis for completion actually checks the y-axis.
operating system: Windows
Excalibur versions: main branch
Current Workaround
Manually do the scaling yourself in an pre-/post-/update function instead of using the action.
The text was updated successfully, but these errors were encountered:
Fixes a bug I found in the `ScaleTo` action, where scaling on the x-axis exclusively may never complete. The `isComplete` method accidentally tested `tx.scale.y` against the x-axis, rather than testing `tx.scale.x` against the x-axis. I wrote the test first, watched it fail, and then fixed the bug and watched the test pass.
Hello! 👋
I'm pretty sure I found a bug in the
ScaleTo
action; theisComplete
method checkstx.scale.y
against the x-axis, rather than thetx.scale.x
against the x-axis, and so the action will never complete if, for example, you're only scaling the x-axis. The bug is on this line; I also cloned the repo, wrote a test, watched it fail, and then fixed theisComplete
method; I'm opening this issue first since the PR checklist asks you to open an issue first. 😄Steps to Reproduce
Expected Result
The first scale would complete, and then the second scale would run and complete.
Actual Result
The first scale executes, but never believes it's completed, and so the second scale never runs.
Environment
Current Workaround
Manually do the scaling yourself in an pre-/post-/
update
function instead of using the action.The text was updated successfully, but these errors were encountered: