PIXI Mask with transparency lines
Hi guys! I'm trying to create PIXI mask with transparency at the top and at the bottom of rectangle. To make transparency I draw 10 lines with different alpha at the top, then draw a rectangle and 10...
View ArticleClick a sprite, make it go away and show or add another sprite
I need to be able to click a sprite and it falls and a new sprite pops up. Not just show if possible. I've tried lost of things. Any help would be appreciated.
View ArticleHow to do Pixel-Perfect Collision between two Sprites?
Hello! Allow me to get straight to the point: I'm looking to create pixel-perfect collision between two PIXI.Sprites. In other words, if two Sprites have overlapping pixels AND the overlapping pixels...
View Articlecenter point (global) of sprite
Greetings, I am working on a project where I have a bunch of sprites that I'm manipulating the scale, rotation, anchor point and position of. I need to get their original center point (not their...
View ArticleHow fast is 4.x than 3.x on mobile(android,ios)?
hi i'm using 3.x now.. I'm wondering how fast... do you kwow about this? if migrate 4.x from 3.x, tell me about good thing and bad thing thx
View Articleis OutlineFilter gone with 4.1.1
hi. i'm updating 4.1.1 from 3.1.1 but i can't find outlineFilter with 4.1.1. pixi-filter doesn't have it.. where can i find it? thx
View Articleis there a reason using observablePoint on DisplayObject?
hi.. i'm testing to immigrate to v4.1.1 from 3.1.1 but i have many problems. pixi-spine filters specially observablePoint... why using it? i'm wondering... i used expended PIXI.Point...
View ArticleRenderTexture for Tile-Maps - Any Downsides?
Hi I'm wondering whether a RenderTexture could be used for a 2d map that is roughly 2000x3000 at most On theory, a RenderTexture is a dream come true, it's like the ultimate cache, I'm just wondering...
View Articleaape - The Adobe Animate PixiJS exporter
Hi everyone, I'm extremely excited to share my latest side project with you. I call it aape. It is my version of an Adobe Animate PixiJS exporter. Here are two demos of exported animations:...
View ArticleWhy is border of graphics transparent
var progressBar = new PIXI.Graphics(); progressBar.lineStyle(1,0xFFFFFF); progressBar.beginFill(0x658d7d,1); progressBar.drawRect(0,0,1060,12); progressBar.endFill(); I want to draw a white border of...
View ArticleDestroy Object Bug
Hey everybody, First of all big thanks to Pixi.js people for the awesome library. I have been using Pixi to develop a simple game and I stumble upon a small bug or I may be doing this wrong. So here...
View ArticlePIXI Fragment shader and retina resolution
Hello everybody! There is my fragment shader for PIXI.Filter. I'm using it to change the colour of the area drawed by PIXI's primitives (eg. for gradient effect). All looks good on renderer.resolution...
View ArticleHow to make sure that a font is loaded?
Hi guys, I have encountered a really weird behaviour with webfonts and am looking for a good way to solve this issue.I programmed 2 functions to check if the font was loaded. @css/main.css@font-face {...
View ArticleA pixi.js guide?
I've got a task in my university to make a basic game using pixi.js. When I tried to do some basic stuff(load a texture from a tileset and make it move) with This guide turned out it is completely...
View ArticleUsing ColorMatrixFilter to tint to white and back to normal
I would like to make an image go from normal -> fully white -> back to normal. Imagine for example shooting at an enemy in a game, and you want them to flash white briefly. I'm trying to use...
View ArticleSet cursor style
How to set the cursor style to none, for example? When I try to set it manually before the pixi render the stage, the cursor is set to default again.So I suppose there is a way to set the cursor style...
View Article3d building
Hi, I want to make an 2d topdown game that will have 3d buildings/depth. Similar to GTA2. What is the best way to build an 3d building? I have found an 3d box that is made with PIXIjs V1.5 But I...
View ArticleMouse events on masked containers
Hello everyone! I'm currently working with the latest version of PIXI.js (4.1.1) and have a problem with masked container. Code example: var stage = new PIXI.Container(), mask = new PIXI.Graphics(),...
View ArticleTilingSprite doesn't run when the tab is inactive
I am making a slot game and used tiling sprite for reels. It works fine but when I spin the slot and switch the tab on chrome, it doesn't keep running. When I switch it back to the game tab, it...
View Articlerender sprite
can i Local refresh,i use renderer.render(),it canvas.clear(0,0,canvas.width,canvas.height),it not i want. Thank!
View Article