Jump to content

Overlap ignores scroll factor


jd.joshuadavison
 Share

Recommended Posts

I'm using a callback function on the overlap method, but it's firing at the wrong time. After a bit of calculation/trial and error I worked out that it is firing where the sprite would have been if the scrollFactor of the sprite was the default setting of 1.

I assume this is a bug?

See demo on jsFiddle.

Update: it also ignores the objects origin and assumes its origin is the default 0.5. I've updated the demo.

Update 2: I'm now fairly certain this is not expected behaviour, so I've raised an issue on GitHub.

Thanks,
Josh

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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