Method called by mousedown event can't call a different object method
Hi guys, I'm trying to create a class/object that handles all the logic and input for a sprite in my game. When I call a method from the `sprite.on` method, it calls it fine, but it is then unable to...
View ArticleSwitching between WebGL and canvas at runtime
Morning! Just working on a bit of a debug console for my game, was just wondering if it was at all possible to switch the renderers at runtime? Have tried a couple of methods, but it just halts the...
View Articlepixi-action
Hi, I use pixi and pixi-action for animate my sprites on stage. If I use scale function mandalaOver () { var action_move = new PIXI.action.ScaleTo(1,1, 1); // run the action with actionManager....
View ArticleMouse over on object
Hi, I need detect mouse over on sectors of Circle, so standard method pointerover - not work on corners of sectors. How I detect this?
View ArticlewebGL with transparent, bug or feature
Please assist with transparent render https://jsfiddle.net/dxf7ujb2/
View Articlerunning animation performance drops at 1st time, but later it becomes normal
Hi guys, i run renderer.textureManager.updateTexture(resource.texture) every time when the texture loaded before the game starts. I assume it will be successful to upload texture to GPU. However, the...
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 ArticleSpine and cacheAsBitmap
Hi all, been working on trying to get my game a little more optimised for mobile. It's a slot game - just 9 icons all spine skeletons. The icon drop is animated with GSAP. Win detection then plays...
View ArticleGraphics Darker While Moving
When I move my graphics object it becomes darker while moving. Has anyone dealt with this or know what settings might fix or other ideas? EDIT / MORE INFO: I tried antialias and native lines but...
View ArticleTracking down webGL crash reason - possible video memory leak
I am creating new AnimatedSprites on pointerdown event (and deleting them on next pointerdown event) over the course if application lifetime. At some point around 20 clicks, the app crashes with an...
View ArticleTroubles with masks and performance
Hi, I'm trying to start sort of a drawing app where you can draw lines and show an image through those lines. Problem is, it is incredibly slow... So I have an "imageToReveal" sprite and mask it...
View ArticleRender border arround container?
Is there any way to draw border around container, so one can see where container really is? I know container doesnt render, but is there some trick to mock it up? For context: Im trying to glue some...
View ArticleSprite Gleaming effect in Canvas mode
I want to make sprite gleaming at an interval in Canvas mode in PIXI. What is the best way to do that? Say I want the sprite become brighter (like a light bulb) or darker (just show some lighter...
View ArticlePlease help test my game Arcade Builder
Hi guys, I have more info about the game coming soon but would like to start getting help from more people in terms of testing. I'm looking for any flaws here, errors, game play issues, bugs. Some I...
View ArticlePlease help with WebGL errors
Hi, i successfully made simple code that creates sprite and adds it to root stage. But i keep getting errors in console: Quote Error: WebGL: Exceeded 16 live WebGL contexts for this principal, losing...
View ArticleScaling sub-container in PixiJS doesn't preserve MatterJS bodies
I'm using Matter.js as my physics engine and Pixi as my renderer and under normal circumstances I've been able to get them to work smoothly. However, I'm trying to do something where all of the...
View ArticleSprite texture change Lag on Mobile
I have a very small pixi app, which I embed in Ionic 3 and run on mobile (android). It loads a long list of images via PIXI.Loader, and once they are all loaded it starts changing them - every time a...
View Articlebeginner question: using shaders in pixi v4 (custom filter)
Hi, this is my first time using shaders and the new filters in pixi v4, so please bare with me First of all I'm a bit confused by the term (custom) filter.. Is that the same as the user of a shader?...
View ArticleVariable and callback function
Hi! Could you help me? The problem: There is a class (singleton), where I load assets by loader .add("assets/slotParams.json") .load(this.setup); In this callback function “setup” I change boolean...
View Article