getting baseTexture.once is not a function, but the code works
I am creating animation frames from image the hard way -I am using PIXI.Texture and passing baseTexture and Rectangle (I don't use json directly, because of reusability of json instructions). See code...
View ArticleLag when drawing inside a loop
Example: As you can see from my pen above I'm playing an audio file and trying to turn the wedges pink when the dial moves over them (click the center of the circle to play/pause). I have 2...
View ArticleCss transform rotation on canvas leads to coordinates bug. Workaround needed.
I change rotation of my game canvas with css when I rotate my device: gameCanvas.style.transform = rotate(-90deg) And when I click on my sprites they don't work (other sprites get their action...
View ArticleGAF Player for PixiJS available !
Hi there, Here is the first version of GAF Player for PixiJs. If you know Flump or Dragon Bones, take a look at GAF, it's so much more powerful !!! https://gafmedia.com/ At the moment, GAF Player for...
View ArticlePixi.js Noob OOP advice appreciated
Hi all, first post, and a Pixi.js noob trying to learn the ropes - so please be gentle! First off, I'm a designer by trade (www.digilocker.co.uk - shameless plug) but I have dabbled in coding over the...
View ArticlePixi Loader not working
Hi When i load my textures with the loader and add this to the stage it's not showing. But when i create a texture with PIXI.Texture then works perfectly. I load in the game.js file the main-scene.js,...
View ArticleProper way to scale game with Pixi v4?
I've got a low res pixel art game, and my desired resolution of the game is 320x180. I then want to take that 320x180 and scale it up to fit whatever the browser size is, and of course it can black...
View ArticleIs it costly to use addChild and removeChild frequently in Containers during...
I am recently building a container / map with thousands of sprites in canvas. My player will be moving around among those sprites on a large map. But I find my game becomes very slow after I add too...
View ArticleProblem with pixi
Hi, after updating chrome (57.0.2987.110) all pixi examples with pixi version <= 3 are not working anymore. (= The animation/render loop is updating in the background but I don't see the updated...
View Articleclick through dom elements
hi all I've run into a problem that bugs me. it seems that clicking through DOM elements triggers the events of any pixi element that's underneath. ok well, why not. but it seems that it triggers...
View ArticlePIXI.js v3 demos
Hi, I see that the demo code has changed it's code to v4, i'm still on v3 and would like to see the demo's on v3. I tried changing the version but it does not change the demo code....
View ArticleText Input?
What is the best way to make a Text Input? I've been researching for hours and trying so many things and can't seem to get a text input working at all. When using a regular HTML text input, the...
View ArticleText is blurry after scale
I want to make a puzzle game, where the user can zoom and pan on a grid. Some square has text which should be zoomable. First i have tried svg. It looked very nice, the zoomed text was very crisp, but...
View ArticleClick event not registering until using .hitArea
Hey guys, I'm wondering if anyone can spare some time to please help me? The issue exists within an existing project so is difficult to debug. I'm hoping people can just suggest anything rather than...
View Article`getBounds` get wrong coordinate
In my code, I use center as 0, 0. My other coordinate are all right, but when I use `getBounds` to get a curve's bound, the return value is incorrect. It seems the x,y is relative to top-left instead...
View Article1x1 texture from drawRect
I want to draw some lines and rects, usual strategy for doing this in other game engines is using a 1x1 texture in a scaled and tinted sprite, but in PixiJS I found a strange problem with this....
View ArticleBlurry text after scaling
On window resize, the player camera zoom in/out. this.renderer = new PIXI.autoDetectRenderer(cfg.scopeInitX, cfg.scopeInitY, { view: this.canvas }); this.stage = new PIXI.Container(); const text = new...
View Articlepixijs on windows help plz!
Need help on installing pixijs on windows using npm which modules do i need to install and how i could run my script using pixijs with es-2015 support ?
View ArticleSprite mask invert problem
Hi! i have a problem with masking in pixi js. What i want to do is a hole in PIXI.Graphics rectangle with PIXI.Sprite .png mask. Here is codepen: I want to make my cloud transparent, so that i can...
View Article