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
  • Сообщения: 111

badlogic

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
Аватара пользователя
badlogic

Mario
  • Сообщения: 2108

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
  • Сообщения: 111


Вернуться в Bugs