Magnesus

http://esotericsoftware.com/files/runtimes/spine-ts/examples/canvas/

At least in Firefox. Edit: in Chrome too.

How to fix it in js?
Magnesus

Kickstarter Backer
  • Bài viết: 111

Mario

Whoops, this shouldn't be the case. The line responsible for this behaviour is here:

https://marioslab.io/uploads/screenshots/0mIikHRqHv.png

That said, the samples in the GitHub repository use the up-to-date API and don't invert Spineboy. You can find them here: https://github.com/esotericsoftware/spine-runtimes/spine-ts
Hình đại diện của thành viên
Mario

Mario
  • Bài viết: 2412

Magnesus

Didn't have time before to check it - tried it now. Nope, that line doesn't change anything, seems to be ignored.

I had to add context.scale(1,-1); in resize method to fix it.

(The animation also has some elements shifted for some reason to wrong positions. But maybe that is caused by something else, scaling of the canvas or something.)
Magnesus

Kickstarter Backer
  • Bài viết: 111


Quay về Bugs