pointerdown on PIXI object doesn't count as user gesture
I want to make a fullscreen button inside the stage. I added on pointerdown to a PIXI.Sprite like this: fullscreenbutton.on('pointerdown', function(e){ fullscreen(); } On my Android device I get:...
View Articleproblem about resolution in retina screen?
i made a html5 mobile game using pixi.js, the problem is the diaplay in mobile screen not very clear, seems like loss half pixels because retina screen? i am not deep understand about real pixel and...
View ArticleGame speeds up after reloading
Hello everyone! I just recently got into PIXI.js and started with a tutorial from kittykatattack on GitHub which can be found here: https://github.com/kittykatattack/learningPixi#introduction I...
View ArticleSome text is blurred some is crisp.
How can I make my text more consistent and better looking?
View Articleapp.renderer.extract.pixels(sprite) return [0, 0, 0, 0] What am I doing wrong?
var app = new PIXI.Application(800, 600, {forceCanvas:true, backgroundColor : 0xffffff}); document.body.appendChild(app.view); var bunny = PIXI.Sprite.fromImage('bunny.png') var pixels =...
View ArticleCannot read property 'width' of null when moving away from screen
I have an Ionic app that uses the latest versions of angular 4 and ionic 3. I'm using PIXI (4.5.2) in one of the screens in it - the game screen. The player frequently moves in and out of that screen....
View ArticleDoes PixiJSv4 Do Input? Need An Example!
Hi, Alpha3 Final is live and people are complaining about input. I am basically doing input myself, but perhaps using PixiJS would be better? Does PixiJS handle input, if yes can you point me to a...
View ArticleHow to make text Right to left?
Lets say you have some sort of leaderboards and you want to display the score. How would you do this so its like this: .....10682 ......9596 ......8671 ......8542 ......7520 ......6218 ......4211...
View ArticleDifference between rendering a Container and rendering a RenderTexture
I am confused with the two main methods to animate objects in pixi.js. The first one is to build a sprite and put it in a PIXI.Container. I can then add this container as a child of the PIXI stage....
View ArticleStrange Text Outlines? - Trying To Polish Beta1...
Hi, We are ahead of schedule for a Beta1 release. Trying to polish the game now... We are seeing weird text outlines in the game? Our text code is below, what could be the problem?(see attached...
View ArticleChange Position for SpriteMaskFilter
Hello I have 2 sprite One size 1000 by 500 Second 100 per 100 It is necessary to specify the second sprite as a mask for the first I'm using the SpriteMaskFilter class All works except one, I can not...
View ArticleOpen-Source: "PacDude Hero IV 110% Turbo" Beta1 99%
Hi, Took me two weeks working 16 hour days seven days a week, but I managed to make this Beta1 99% of our "PixiJSv4"+"Audio5js" 100% open-source/cross-platform game called: "PacDude Hero IV 110%...
View ArticleSprite positions can't change indepently
Hi .i made a simple pixi app which tries to simulate spring forces but can't make it work properly . I've patched PIXI.ObservablePoint Object.assign(PIXI.ObservablePoint.prototype, { add:...
View ArticleText Size Changes With Resolution
Hi, I'm trying to build my HUD with PIXI.Text, but am having problem that the text is bigger when resolution is larger. For example when l load the page with browser at 200% zoom then my HUD ends up...
View ArticleWhy is text not left aligned properly?
What is causing this? Also when I set a Text's text to "" or '', if I print it, I get ' '. I also checked the code and I'm wondering why this space is added?
View ArticleMulti touch gestures
Hi I am thinking of using some gestures (rotate, swipe) and adding some custom gestures as well (hold down sprite with one finger and swipe it {left or right} with another). Is it possible? Is it also...
View ArticlePIXI.js & Typescript Getting Started
Hey all, just wondering if anyone could spare their knowledge on getting started with PIXI.js with Typescript I've made a couple of simple games now using PIXI.js and love it! Though really find...
View ArticleAccess Pixi instance from within Vue , 'Converting circular structure to...
Hi all, i am trying to use Pixijs inside a vue instance and have encountered a strange issue. I know it might no be directly related to Pixi.js and you can jump to the tl;dr section for a question...
View ArticleCan't prevent camera from being moved out of bounds
I'm trying to make a camera and I made it work by using this code: // Setup stage.pivot.x = user.position.x; stage.pivot.y = user.position.y; stage.position.x = renderer.width/2; stage.position.y =...
View Article