• Content Count

  • Joined

  • Last visited

  • Days Won


d13 last won the day on August 29 2019

d13 had the most liked content!

About d13

  • Rank
    Advanced Member

Recent Profile Visitors

3192 profile views
  1. There's an example here: https://github.com/kittykatattack/learningPixi#loading
  2. This was developed with Pixi v4, but should still work with 5: https://github.com/kittykatattack/tileUtilities
  3. I would love to do it! But just haven't had the time yet, unfortunately.
  4. Just for reference, I finally managed to get this working by duplicating the atlas files for as many JSON files as I have (15), giving them the same name as the JSON, and pointing the atlas to the same single PNG file. I'm getting the error message, "BaseTexture added to the cache with an id [assets/animations/observation/observation.png] that already had an entry", but I can live with that for now. If I find a better, less hacky, way to do this, I will report back 😄
  5. Thanks Ivan... just digging around my files, there doesn't seem to be a reference to the .atlas in the spine .json files. Do you mean the reference to the .png in the .atlas file?
  6. Thanks Ivan! I'm having a little trouble understanding how this might work. In this example... var atlasLoaderOption = { metadata: { imageNamePrefix: 'spineAtlas_' } }; PIXI.loader .add('flyingAnimation.json', spineLoaderOptions); .add('walkingAnimation', spineLoaderOptions); .add('anotherAnimation.json', spineLoaderOptions); ... will my JSONs need to have the same root name for them to share the single atlas and png?
  7. Hi Everyone, Another Spine question: Is it possible for many Spine animations to share one texture atlas? For example, I have some animations that look like this: animationOne.json animationTwo.json animationThree.json My atlas and PNG look like this: myAnimation.png myAtlas.png I basically need my three animations to share the same .png and .atlas files I have read this, https://github.com/pixijs/pixi-spine/blob/master/examples/reuse_texture.md, but I'm not sure whether it applies to this use case..? (If it does, please let me know!) Thank, you!
  8. Hi Everyone! Another Spine question! Is it possible to set and pause the animation at a specific point in the timeline? I could find this in docs, but if anyone could point me to the correct reference, I'd greatly appreciate it. Thanks!
  9. d13

    Setting Spine skins..?

    ... I should also mention, I'm getting this warning: `"export 'spine' (imported as 'PIXI') was not found in 'pixi.js'`. But, otherwise, no other errors.
  10. d13

    Setting Spine skins..?

    Thanks! I will do some more testing and report back
  11. d13

    Setting Spine skins..?

    I'm using Pixi 5 and the have installed the pixi-spine master branch (2.1.4).
  12. d13

    Setting Spine skins..?

    ... Just to be a bit more specific, I have some slots that look like this: "slots": [ { "name": "lamp", "bone": "root", "attachment": "lamp" }, { "name": "glove_bottom", "bone": "glove", "attachment": "glove_bottom" }, { "name": "sample_skin", "bone": "sample", "attachment": "sample_skin" }, ] I'm trying to figure out how to change the skin for "sample_skin". I've tried this: this.animation.hackTextureBySlotName('sample_skin', newTexture, { width: 40, height : 40 }); ... but without luck. Is this the correct way to do it, or is there something else I'm missing?
  13. d13

    Setting Spine skins..?

    Thanks Ivan! Yes, I'm using the latest pixi-spine. I will and see if I can it working using hackTextureBySlotName (https://github.com/pixijs/pixi-spine/blob/master/examples/hack_texture.md) By the way, are the images in the spine texture atlas accessible as individual textures through Pixi's resource loader? Or will they need to be loaded separately?
  14. Hi Everyone! Just wondering what the the current practice is for setting skins in Spine? I tried the following, based on this (https://github.com/pixijs/pixi-spine/blob/master/examples/change_skin.md)... but so far it hasn't worked: this.animation.skeleton.setSkin(null); this.animation.skeleton.setSkinByName('newSkinName'); I know the skins are working, because if I change the names any of them to `default` in the JSON, they show up when the animation starts as expected. Is there something else I need to do to make sure the new skin is applied? Thanks!!
  15. Wow, thanks Ivan, using `require` worked! I would never have thought it!