Comments (6)
Spine objects are anchored by point (0,0) in spine editor :)
from spine.
@ivanpopelyshev it seems that spine objects are anchored to bottom center (0.5, 1) not 0,0 as far as I can tell.
from spine.
@mreinstein Spine editor has its own coordinate system. (0,0) in that system is an anchor. In most cases it is bottom center.
from spine.
but what do I do at runtime, in my game? How do I set up a mask that partially obscures my spine animation? do I attach the mask to the spine object directly?
from spine.
As far as I know Spine object is simple Container. Attach mask directly.
from spine.
spine.mask = graphics || sprite
should be fine
from spine.
Related Issues (20)
- Possible to create Pixi.spine without atlas in pixi.js version 7.3 and pixi-spine version 4.0.4 ? HOT 7
- PIXI.Assets options.defaultSearchParams doesn't affect atlas and image files when loading spines HOT 1
- "pixi.js": "^5.3.7" HOT 1
- Runtime 4.1 does not play nice with TypeScript strict mode HOT 2
- When will pixi v8 support be available? HOT 12
- Cannot read properties of undefined (reading "children")
- Uncaught TypeError: Cannot read properties of undefined (reading 'Spine') with PIXI.Spine
- Bug: Code reports errors and positioning problems when using a custom image path
- Support for Spine v4.2 HOT 2
- `state.removeListener` not as expected HOT 2
- How to move bone correctly? HOT 1
- bug: atlas.findRegion is not a function
- The spineData param is required. HOT 2
- Use hackTextureBySlotName with Pixi v7 and Spine v4.1
- [QUESTION] How to export spine to avoid "ClippingAttachment bounds not supported yet"
- Cannot read properties of undefined (reading 'skeleton')
- Creating mock spineData
- How to get all rendered elements of skeleton.
- Cannot read properties of undefined (reading 'substr') detectSpineVersion
- There is a chance that spine present a black outline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spine.