Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't stack up Camera.move()'s only the first works #944

Closed
eonarheim opened this issue Mar 31, 2018 · 0 comments · Fixed by #962
Closed

Can't stack up Camera.move()'s only the first works #944

eonarheim opened this issue Mar 31, 2018 · 0 comments · Fixed by #962
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior

Comments

@eonarheim
Copy link
Member

eonarheim commented Mar 31, 2018

Steps to Reproduce

var game = new ex.Engine({
   width: 600,
   height: 600
});

game.isDebug = true;

game.add(new ex.Actor({x: 0, y: 0, width: 100, height: 100, color: ex.Color.Red}));

game.start(loader).then(() => {
   game.currentScene.camera.move(ex.Vector.Zero.clone(), 2000, ex.EasingFunctions.EaseInOutCubic).then(() => {
      game.currentScene.camera.move(new ex.Vector(600, 600), 2000, ex.EasingFunctions.EaseInOutCubic)
  })
   console.log('started');
});

Expected Result

Camera should move to (0, 0) and then move to (600, 600)

Actual Result

Camera only moves to (0, 0)

Context

Proposal

@eonarheim eonarheim added this to the 0.17.0 Release milestone Mar 31, 2018
@eonarheim eonarheim added the bug This issue describes undesirable, incorrect, or unexpected behavior label Mar 31, 2018
jedeen pushed a commit that referenced this issue Apr 21, 2018
* Fix move chaining
* Refactor easing functions to be reversible
LoserAntbear pushed a commit to LoserAntbear/Excalibur that referenced this issue May 8, 2018
* Fix move chaining
* Refactor easing functions to be reversible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant