How to get a sprite by location of mouseClick?
I have a dictionary of sprites displayed on the screen. I am trying to remove the sprite that the user clicks on. To do this I am trying to get the location of the mouse click, and get the sprite at...
View ArticleMask works with rotation only
Hi. I wasted a lot of time with next problem: my mask only works when its rotation is 0.1 or more (when I applied mask to a container, the container didn't display anything). I made little example on...
View Article8k world size, how to crop renderer to a new canvas?
Hi Team, I'm looking to increase my world from 2000px2 => 8000px2+ (maybe even 12k if it works out) I haven't been successful in finding a way I could crop/clone so to speak a rectangle within the...
View ArticleToo many active contexts
Noob question. I have a 100 individual components and I need to draw fill a vertical rectangle every 30ms in each component so I tried to use a canvas for the rectangle and then use webgl to render...
View ArticleNot able to make sprite interaction to work
0down votefavorite I'm trying to build a simple game menu, containing some clickable sprites, which will be used as buttons to navigate around the menu. ( I'm using the latest pixi.js (v4.3.5) )...
View ArticleWorking w/ pixi particles.. help please?
I'm curious, does pixi-particles really require use of TypeScript? https://github.com/pixijs/pixi-particles Compared to all pixi-related libraries (like pixi-sound, tween, etc), so far this one gave...
View ArticleSprite not rendering when I add it's image texture to a folder
I am having a really weird issue. I am creating a sprite from an image as follows: var grid1_texture = new PIXI.Texture.fromImage("whiteSquare.jpg"); Now this works fine and I am able to add this to...
View ArticleHow to crop/hide over flow of sprites which clip outside of the world boundaries
Considering: I am curious if there is some sort of configuration which can crop drawings outside a particular boundary? Thanks
View ArticleContainer vs ParticleContainer
Hey guys, just a really quick question on containers. I see that you can use a PIXI.particles.ParticleContainer. In the documentation is says that it doesn't support features such as tinting, alpha,...
View ArticleShould I have to re-render ever time I move a sprite?
I have a number of sprites on the screen. Any time I move one (set the x and y values), I have to remove the sprite from the stage, add the sprite to the stage, and then rerender the stage. Is this...
View ArticleWeird behavior of PIXI.particles.ParticleContainer, no children are displayed
I have tried to put my sprites into a ParticleContainer but they won't show up. But if I put them into a PIXI.Container they show up. I don't understand. Here is my code: this.objectContainer = new...
View ArticlevTextureCoord and custom filters on Pixi v4
Hi guys! I'm trying to figure out how to apply some custom frag shader into a filter. The intented effect is a simple crt warp over a sprite. Here is what I got so far:...
View Articlepixijs 3d transform
Hi guys, is there any way to do rotationX, rotationY or rotationY for displayObject in pixijs, should we do it manually in updateTransform. I don't need camera, just simple rotationX Thanks
View ArticlePixi custom filter access underlying pixels
Hello. I am trying to build a sort of "Line of sight" shader. I have the a tilemap which is just a Sprite sitting inside of a container. Then I am generating another texture dynamically which...
View ArticleInteractive not working correctly with scale
Hi folks. I'm having a bit of problem with interactivity using PIXI.js. I have my root container set to a scale of 2 so that all my sprites etc which are children of this container are also scaled....
View ArticleProgrammatic creation of a spritesheet
I'm cutting up some large images into puzzle pieces, and I'd like to create spritesheets out of them directly from JavasScript (as opposed to cutting them up and saving them as images which are then...
View ArticleCan containsPoint be moved to Container?
Is there a good reason containsPoint method couldn't be moved down to Container and examine children, since it's already on Graphics, Sprite, Mesh, etc?
View ArticleDisable sprite smoothing?
Hello all! I'm currently playing around with pixi.js and i have used to these things with normal canvas. I think this might have been asked many times, but how do i disable that image anti-aliasing...
View ArticleDestroy all children but keep base textures in tact
My game has multiple game states (ie levels) and each game state has a root container to which all further pixi objects are children off. When swapping game states I wish to clean up all the objects...
View Article