Jump to content

Requesting help: miscalculating tween to pointer while using camera


timinman
 Share

Recommended Posts

http://inmans.org/hummingbird

 

I'm using a listener to respond to a pointer click by moving my sprite to where the pointer was clicked. It works predictably until the sprite scrolls past the stage width (the camera is following my sprite). Once the camera follows the sprite past it's starting orientation, it doesn't seem to correctly calculate the position the pointer was clicked.

 

You can see the relevant code here: https://github.com/thehack/hummingbird/blob/master/game.js

 

Am I mixing incompatible features?

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...