Sprite sheet json file
I'm trying to create a six frame movie. I'm at a loss for what the related sprite sheet json file should have in it. I keep seeing example code for loading the json file but not a hint for what needs...
View ArticleQuestion on Writing Clean Code with PIXI
Hey! I have a question about writing clean and DRY code. Do people generally just have one file for a single page app and put everything within their loader.load(setup) function? Or is splitting stuff...
View ArticleAdd/Change text on a texture?
Hello everyone. I'm new to Pixi.js and I'm wondering if this would be possible: Basically, a user should be able to enter a text which then will be added to a texture (some kind of card). This card...
View ArticleElectron vs Chrome
Hi, I have encounted something strange and I don't know how to fix it. I have git cloned the examples page onto a local webserver and the plugin projection, 3D Camera spine layers works fine. But...
View ArticleHow to execute every second?
How can I run it every second or every 0.5 seconds? I try const seconds = 0; app.ticker.add(delta => { seconds += 1 / 60; if(seconds >= 0.5 ){ console.log('alert!'); } }); There doesn't seem to...
View ArticlePixi.JS - Capture animation frames as BLOBs
Hi, So i've got this code working which captures animations that is going on in the canvas and returns DataURL of each frame.It works fine, but sometime it misses frames and give less FPS when my...
View ArticleContainer out performing ParticleContainer
The title pretty much says it all. I know that that contradicts the documentation, so I am assuming I have done something that is destroying performance. We have a texture atlas which that has 5...
View ArticleShader and Filter
Hello I use PIXI.Shader and PIXI.Filter and pixi v4.8.6 (i know it's old i can't update for now) Thus, i try to make a color transparent, my shader works with PIXI.Filter, but not with PIXI.Shader....
View Articlehow to choose how many image sequences in a spritesheet for animating a sprite?
here's the example from the documentain PIXI.Loader.shared.add("assets/spritesheet.json").load(setup); function setup() { let sheet =...
View ArticleBitmapFont from a SpriteSheet texture, possible resolution error
Greetings, I'm new-ish to Pixi, but not new to HTML5 development (slowly making my way over from CreateJS, Flash before that, Director before that). This is also my first forum post. I'm having an...
View ArticleHow to fix "Cannot read property 'something' of undefined"?
here's the code: let Sprite = PIXI.Sprite, loader = PIXI.loader, resources = PIXI.loader.resources; loader .add("assets/sprites.json") .load(setup); let uno; function setup() { sheet =...
View ArticleHelp with SHADER
Hello guys! I would like if someone could help me, I'm even willing to pay for such help cos I'm desperate to find solution to this. I'm about create cool website but I'm still learning PIXI in the...
View ArticleLimit pointers on touch devices?
Hi, I'm just working on a drag & drop demo, which is working prety well - but, when testing on a touch device, I realised I could drag & drop more than one item at a time. This may be a...
View ArticlePixi.sound is sound a singleton?
Having issues fading out audio and play them again without duplication. I wondered if I'm using the pixi.sound library wrong as I've been setting a let music =...
View ArticlePixi.js Showcase
Made anything cool with pixi.js? Post it up here and share it with the world! Whether it's a cool game demo, a fully fledged website or some tripped-out crazy experiment, we would all LOVE to see it!...
View ArticleBullet go on mouse position
Hello guys, I'm trying to make a little game with pixi, My character can shoot fireball, but i want to them they go on the mouse position (current cursor position) like the screen. here my bullet code...
View ArticleHi!Can pixi cut a square picture into a hexagonal picture?i!
Hello! I have a square picture,Now I want to cut this picture into a hexagonal picture without using photoshop. Is there any good implementation idea? mask?or frame?
View ArticleQuestion on Z-Indexing
I have a container that is filled with objects, each of these objects have children. When the user hovers over the objects the children appear visually on the screen. However, the children do not...
View ArticleIE11 Error: Temporarily switching to software rendering
Hi Everyone! Does anyone know of a solution to this WebGL error on IE11? "WEBGL11257: WebGL content is taking too long to render on your GPU. Temporarily switching to software rendering." Should I be...
View ArticleGSAP v3 PixiJS v5 PixiPlugin w/ Graphics Issue
Hello, I have this code pen here. Just testing some functionality with GSAP, PixiJS, and PixiPlugin. I have three questions. 1. What is the difference between pivot.x, and pivotX here? I have found...
View Article