Fading RenderTexture
Hello, I'm trying to implement a fading buffer to use for rendering particle "trails". The effect is pretty much what is described here. Specifically the fiddle there makes it clear quickly. The core...
View ArticleHow many memory are you using in your game
hi i'm suffering with memory my game is using 300-400 when start.and mobile version is using 250-350 and memory is grow up if monsters or npcs is appeared . memory is always insufficiet When play...
View ArticleCan you set the absolute position of a sprite?
I have a sprite within another sprite. I need to be able to drag the inner sprite, but it's offset by it's parents attributes - is the only fix to offset it again by it's parents position, scale, etc?...
View ArticleHelp - wordpress and pixijs - running examples.
Hi. I need help with pixijs and wordpress. I know wordpress has plugins for working with javascript. But I need a good way to integrate pixijs with wordpress. This mean to make wordpress post with...
View ArticlePIXI with Howler
Hi, Is there a way how I can preload sound files with pixi for howler? I use PIXI.loader as a global preload for my game and for rendering loading bar before starting the game, but Howler use his own...
View ArticleSprite sheet json file
I'm trying to create a six frame movie. I'm at a loss for what the related sprite sheet json file should have in it. I keep seeing example code for loading the json file but not a hint for what needs...
View Articlemouse behavior change between 3.0.8 and higher
In Pixi 3.0.8, if a Sprite (named "A") has its interactive property to true and has a function listening the "click" event, the sprites that are under "A" (with interactive to true and a function...
View ArticleTrim and Crop in WebGL and Compressed Textures
Hey guys and girls, we are trying to get WebGL Compressed Textures to work with the texture trim/crop, but get strange effects: Problems in WebGL: DDS form a horizontally and vertically repeating...
View ArticleDrag/drop in fix window/area
Hi, I'm developing my first web game and I have small problem. Uncaught TypeError: this.constrainBackground is not a function .... on line 50 I dont know what I'm doing wrong. Any ideas? Thx (This is...
View ArticlePixi + DragonBones
Not sure if this is something that's been done already, but I've put together an adapter to run dragon bones skeleton animations with Pixi content. http://www.alexh.org/pixiDragonBones/ The source is...
View ArticlePIXI.Texture.EMPTY gets destroyed
Hi, This may not be a typical use case, but in my project I have some sprites which are created without a texture (in a sprite pool) and later on, those sprites may get destroyed. The side effect I...
View ArticleChange texture color
Total pixi noob here. I'm loading in a texture from an image file and need to dynamically change its color. The image is basically a flat wave-like shape that I want to be able to make different...
View Articlepixijs - set script.
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <script src="pixi.js"></script> </head> <body> <script> var stage = new...
View ArticleAdding extra space to texture for fragment shader
Hi guys. So I'm working on my first shader, which is a glow. Right now it sorta works but the issue is - when I put it on, say, PNG with some shape used as sprite - the shader only works on pixels...
View ArticleBlending of shaders
Hi guys. I'm new to WebGL and other related stuff and I'm learning shaders. I haven't used pixi other than creating scene with a sprite and applying my shader to it following basic examples on Pixi...
View ArticleTutorial : Handling game scenes and screen scaling with Pixi
This is my little contribution to Pixi : a tutorial about handling game scenes and auto scaling screen size. the tutorial is not about how to make game or draw thing with pixi, it's about how to...
View ArticleMask causing parent to be transparent
Hi! I've been working on a canvas game for a while, hit some performance issues I just can't get around, and am hoping Pixi is the answer. So I'm struggling a bit to learn how to implement everything...
View ArticleCan i delete canvas code on pixi.js?
hi. my game can't play on canvas becuase it's too heavy.. so code that drawn by canvas, on pixi.js don't need.. so i wanna delete it.... can i delete it? and is it problems?
View ArticleConstrain drag along a path
Hi, how would I go about having a graphic being draggable but within a constrained area. So lets say I have a triangle and an arc. How would I be able to drag the triangle but without it leaving the...
View ArticleWrong Drawing Sprite that Packed Image
hi.. i'm creating own ui system. and ui background is generated by pieces of image this is piece of image this is genereated bg (red box is wrong drawing) it happened by packed image... hm... what...
View Article