Centering game stage
I've just picked up pixi.js as I plan to make a simple browser game and I've got some questions (sorry if those are very simple or stupid!). 1. I followed docs and ended up using Application class to...
View ArticleSize of texture is 0
Hello! I'm porting code from PIXI 4 to PIXI 7 and I'm stuck with some runtime errors. After digging into, it seems to be a problem with the size of a texture. I came up with this little reproducer:...
View ArticleAlternative Animation Approaches
Have come into a scenario where I have up to 10 large spine objects on screen, all of which are using two masks to simulate “sliding doors”. Masks are set at the top and bottom and the sprite is slid...
View ArticleA little guidance with this issue please? (fonts/text/animation)
I have two servers, both are nginx. On the first one I host a PixiJS game and it is showing all the texts and animations without a problem. On the second one I host the same PixiJS game but I have a...
View ArticleFinal sprite image is "wrong" if the parent has the coordinates changed
I'm not understanding why the bunny sprite is in wrong position when the parent has their coordinates changed. How can I make the bunny sprite stay in the same position as I did on the canvas, since...
View ArticleNeed help with creating a map area
I'm quite inexperienced so sorry in advance if I'm not being clear what I mean. I've been playing around with pixi starting to make a 2D space shooter, I got as far as rendering a sprite, plotting...
View ArticleHow to download image in high resolution (higher than screen resolution)
I've created simple editor for images in react. But I found that if I use resolution higher than 1 I can increase downloaded image quality <Stage options={{resolution: 1.5}} ... /> , but in this...
View ArticleNew to Pixijs... can I just add attributes to a Sprite?
So, learning Pixijs by building a game... created my ship, and it flies around with an asteroid like dynamic, leaving me to track its x and y velocities, if its accelerating, turning, firing, etc. I...
View Article[Question/Help] Can I use a PNG binary mask for hitover area instead of polygon?
Hello, as the title implies, I'm trying to create a hitover area using a PNG binary mask instead of a polygon mask. I couldn't really find something for this in the documentation. Is that possible?...
View ArticlegetBounds() returns a rectangle significantly larger than the sprite
I am getting strange behaviour from getBounds, especially when my sprite is rotated. Consider the following code, which loads up a tank pic (attached). // Convenient PIXI aliases const Graphics =...
View ArticleQuestion about pixi-spine
The color of the blush on the face does not seem to be displayed correctly, what should I do?
View ArticleCan the render loop keep running while waiting for prepare.upload?
I have a big texture using a Spine animation (3905 × 2948). When its played for the first time, it causes a noticeable frame freeze, for around 1-2 seconds on slower devices, then it goes on....
View ArticleSoftware Developer needed for Project - $4000
We are an education publishing company located in the US and are in need of extra help to extend our line of WebGL based games and activities for students. We currently have a project ready to start...
View ArticleY coordinate stage cutoff?
Nevermind, I'm an idiot. Turns out I put the limitation in on my mob class a while ago and forgot.
View Articlepixi v6 / Tint black
Hi there! I would like to know how to make tint black for Sprites/AnimatedSprites? I checked pixi-heaven (tintDark) but I couldn't get the things work as I want. Is there any documentation for that...
View ArticleApplying positional filters to display objects, even when partly off-bounds?
Hi all, I'm stumped on a filter use case that I've distilled in the following example. I have a Sprite with a CRTFilter on it. When the sprite is fully-visible in the canvas, it renders as expected,...
View ArticleCentering and displacement issues
I have a developed a simple Pixi scene where there are 4 Sprites vertically placed. All of them have a displacement map assigned. To begin the sketch, I have set the displacement filter to have a...
View ArticleHow to change background color?
I can only set background during initialization like this: new Application({ background: 0x000000 }). I can't figure out how to dynamically update the background color after that....
View ArticlePixiJS Delete a lot of sprites
I have a contatiner with 64 children in pixiJS. Each of these 64 elements is a sprite. I want to delete 60 of these elements. How can I achieve this? When I use the forEach command for the container...
View ArticleAdjusting Resolution screws up ClickEvents Position
I've run into an issue with using click events with an adjusted resolution The event seems to trigger when you click where the sprite would be at 1.0 resolution rather than where the sprite actually...
View Article