Create sprite using base64?
Hi, I was wondering if there is a way to create sprites using base64 encoding rather than loading an image from a URL? The reason being is I store my images within mongodb and would prefer to keep it...
View ArticleRay, Beam and Lightning Effects
Ahoy! For those of us who played games quite a bit (most of us, no doubt), we've seen plenty of (chain) lightning effects (example screenshot in the spoilers). Now, even though I've seen such effects...
View ArticleLoader.once('complete'... responds only after all asset are loaded
I have been trying to add a loading screen to my game. I know that I need to use .on('progress') and .once('complete') handlers. I run following code for loading an asset batch;...
View ArticleHow I can simulate css property 'background-size: cover'?
I make a sprite with large texture (1920x1080) in the scene with size 1200x900, set anchor 0.5 and set position to center of the scene.Of course part of the sprite go out from scene. How I can repeat...
View ArticleWhen sprite.width != sprite.height,can i draw circle in sprite
i create a sprite,and set it width != height;i create graphics as the sprite children,but if i user graphics.drawCircle draw circle,it will draw Ellipse; code : <!DOCTYPE html> <html...
View ArticleShader draw issue
Hello, I'm having trouble making my pixi app draw some DisplayObject (I think the issue is related to this) with a Shader. The shader/filter itself works fine, but if I move the DisplayObject it's...
View ArticleHow on earth do I change the color of text?
var name_text = new PIXI.Text(name);name_text.style.font = "bold 10px arial";name_text.style.align = "center";this.imageContainer.addChild(name_text); How do I change the color ! aaa
View ArticleFilter with depth map
I have a situation where I need to apply calculations based on a map for my sprite. Currently I have sprite with filter calculating the results. The problem is that the vTextureCoords are in...
View ArticleHow to drawPolygon twice for poor man shadow effect?
Good evening, with pixi.js v3 I was using the following code to draw a shadow underneath a polygon (here full source code of Score.js): this.filters = [ new PIXI.filters.DropShadowFilter() ];...
View ArticleIssue trying to create stage that fills browser window
I am trying to create a stage which fills the browser window; as well as a window.onresize handler which resizes the renderer (and underlying canvas) to the new window size. Unfortunately it seems...
View ArticleHow use Pixi with filter Pixilate?
Hi all! I make the first steps with the Pixi and I need help. I want to take a picture from canvas and applied to the image Pixelate filter (as here...
View Articlehow can i load from image raw-data(binary data)
hi... i wanna save image data like guild flag on server(it will be db). but i don't know how read binary data from basetexture and how save to basetexture from raw-data(binara data) please give me...
View ArticleInteraction locations don't change if container moves
o/ I'm working on a project where I want containers to be clickable; They are, because I'm creating a sprite covering the group that has interactive true. But when I move the container of the items...
View ArticlePage Flip of Sprite
Hi, How can I do a page flip effect in a Sprite? example: http://jsfiddle.net/kmturley/GGea5/1/
View ArticlePIXI GreyFilter
Hello everyone! Is there Grey filter in the latest version of pixi.js? I found these only: http://pixijs.github.io/pixi-filters/examples/
View ArticleRight way to manage stage size for web and mobile
I need to have a single code for web and mobile client. I wrote something lie this: var renderer; var stage; window.onload = function() { var w = screen.width; var h = screen.height; stage = new...
View ArticleAudio Loading Issue using Pixijs
Hi all of you!, Could anybody give me the solution while loading audio in safari browser issue as following. these are the audio files in local drive GET...
View ArticleSprite interactivity with alpha channel from png
Just wondering are there any solutions to ignore zero alpha channel on png images for mouse events. I make sprite from image with complex form and transparent area on it. And when I make it...
View ArticleCan't display video
Hi, I'm having some issues trying to load and display an MP4 video in a sprite, which also need to loop endlessly. I'm using the loader class in order to be sure that the video is loaded. The video is...
View Article