Access pixi container children or length outside of ticker problem
Hello, I decided to update banner made with pixi version 3.0.8, to use more recent version of pixi. I think the latest version where I didn't have problem was 4.3.1. It is very basic banner. 3 images...
View Article[PIXI] Correct way to initialize an Application?
Hi Everyone, Browsing through the Pixi docs, it looks like the correct way to initialize a Pixi app with an initial width and height is: let app = Pixi.Application({width: 500, height: 500}); It looks...
View ArticleReplacing sprite with one solid color?
Hi there, I've been googling this for a while but all I've come up with is how to tint the sprite which isn't the result I want (I've tested, it colorizes the sprite) So I was wondering if it was...
View ArticleQuestions About Video File Playback...
Hi, I think I saw video file playback support built into PixiJSv4. If above is true I have the following questions: (1) Does video file playback have audio? (2) Does video file playback work on mobile...
View ArticleDoes PixiJSv4 Have "Pixel Perfect Collisions"?
Hi, Took some time, but I think I have an idea for a new game... I need pixel perfect collisions between sprites (think 2-d space shooter). The documentation makes absolutely no sense to me so I am...
View ArticleExtending Sprite Class
This is more of a JS question really. I know the solution, I just need to know why this won't work, opposed to that. I am very new to PIXI and just barely grasping the concepts of oop so bare with me....
View ArticleSVG Spritesheet for PIXI
Hey folks! I use a large number of vector image sprites in a game. At the moment I have to export them all from Illustrator as PNG's, TexturePacker those into a large spritesheet, and then load that...
View Articlehow to render 30 animating lines with 2500 points each at 60fps
Greetings! I love pixijs! Amazing stuff! I'm currently attempting to plot about 30 lines, each containing about 2500 points scrolling right to left (where once a point goes off the screen to the left,...
View ArticlePIXI.WRAP_MODES.REPEAT not working?
Hello, I'm asking because I'm not sure of my understanding the PIXI.basetexture WRAP_MODES: For example: given one container, one texture (loaded with loader) and one smaller sprite, defining...
View ArticleKeyboard input within iFrame(clicking doesn't focus)
Itch.io puts my game in an iFrame. This means that event listeners don't work unless the iFrame has been clicked on (so no keyboard input). But clicking on the WebGL area within the iFrame doesn't...
View ArticleBug in my ordering code?
I'm trying to implement a simple "move to back" / "move to front" without relying on the heavy lifting of something like https://github.com/pixijs/pixi-display Here's my ordering code, but it doesn't...
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 ArticleNew to PixiJs: Showing percent of image revealed using mask?
Hello, I'm super new to pixijs and am trying to do a scratch off type game, using the code samples from https://pixijs.github.io/examples/#/demos/mask-render-texture.js and...
View ArticleIterate through loaded texture atlas
I've loaded a large sprite sheet of trees and I want to iterate through them all so I can grab random trees. Up until now I've always just used them by name, so I'm not sure how to do this....
View ArticleScroll/clip rect in pixijs
Hi All, I have a quick question that ive been battling with for most of the day, is there an easy way to create a "scrollRect" for a pixi graphics object? I mean something along the lines of:...
View ArticleCreaturePack Pixi.JS now accelerated with WebAssembly
Hello all, Just wanted to let you guys know that the new CreaturePack runtimes have been accelerated with WebAssembly support: https://github.com/kestrelm/Creature_WebGL You can check out more details...
View ArticleHow to draw directly to a PIXI canvas?
I want to use PIXI only as the rendering/drawing part of a game (engine) but I also need the possibility to draw directly (for non-sprite graphics). I am able to get access to the canvas a)...
View ArticlePIXI with React or Angular
Hello! Please tell me whether to combine the pixi with react or angular to build the UI. I'm a flash developer with AS3 and turn on JS in the world of flash, works very effectively bundle Starling +...
View ArticlePIXI.particles.ParticleContainer
I've tried using this to optimise code that doesn't really require any of the fancy stuff you'd lose out on. If I use a ParticleContainer instead of a Container, I get the following...
View ArticleRemove SpriteSheet TextureCache
I have loaded SpriteSheet using json. Like this below. const loader = new PIXI.loaders.Loader(); loader.add('bunny', 'data/bunny.png') .add('spaceship', 'assets/spritesheet.json');...
View Article