Quantcast
Channel: Pixi.js Latest Topics
Browsing all 3978 articles
Browse latest View live

AnimSprite is remain after stop and delete

// Bullet if(this.CurrentAnim.name == "bullet_dead") this.CurrentAnim.Animsprite.onComplete = () => { this.IsDead = true; }; // Animation (animation class have member pixijs.animsprite) this.update...

View Article


Image may be NSFW.
Clik here to view.

Redrawing BitmapText every frame causes memory leak - Pixijs v5

Hi, I'm using PIXI.js v5.3.12 for a project and the project structures requires a call to "new BitmapText('some text', {fontName: 'my_font_name'})" every frame. Unfortunately this causes a memory leak...

View Article


PixiJS Spine, drawing multiple animations

Currently optimising a project and I've been looking at ways of minimising the amount of CPU time spent on Spine animations. I basically want two copies of the same Spine object on screen, but I don't...

View Article

[PixiJS6] Suddenly CONTEXT_LOST_WEBGL occurs

I use pixijs v6.5.3 and Apple m1 chip laptop.  After initializing the app, after a while all of a sudden the screen disappears. The console displays WebGL: CONTEXT_LOST_WEBGL: loseContext: context...

View Article

Pixi glow on android

I'm currently using default glow filter from @pixi/filter-glow ^4.1.5 version with cordova framework and i discovered recently that it's not working with few specific android devices. Outline filter...

View Article


Image may be NSFW.
Clik here to view.

Blurry sprite image depending on device resolution?

Hiya, I have a resolution problem and I'm trying to understand what's going on. Basically I have a simple Pixi app that renders an image as a sprite (on a grey canvas). But I find the quality of that...

View Article

Visualize boundaries of sprite

Is there any way to visualize the boundaries of a sprite? did not find anything

View Article

rendertexture returns blank on sprites already rendered to stage

Hi, I am trying to create a texture from a sprite using rendertexture. However, I noticed that if i make a sprite, add it to the stage , and render the stage. Then try to make a rendertexture of that...

View Article


Container_name.cursor = "pointer" not working after pixi-legacy7. 0.4.

Before pixi v7 buttonMode properties are working properly for all displayobjects.  After pixi v7 update it won't working, so, I've changed those into objectname.cursor = "pointer". Sprite, Text,...

View Article


Image may be NSFW.
Clik here to view.

Implementing bullets in 2D game - animation and collision detection

Hello, I'm making a simple 2d platformer game with shooting elements, my goal is to achieve a bullet with high velocity (but not a hitscan), that is obedient to collisions and is animated. My game map...

View Article

Image may be NSFW.
Clik here to view.

Multiple canvases being rendered in my Pixi app

I have a strange issue with my canvas elements. I had been developing a Pixi.js project in isolation, then decided to embed it in my React app.  I have been able to place the Pixi project within a...

View Article

Properly Changing Size of Pixijs Renderer

Hello, I am looking into game design, and decided to use the Pixi.js library for a project. The problem is that I am self-taught and unfamiliar with using Pixi. I am trying to resize a renderer...

View Article

PixiJs smooth animation

Hi all, I want to put together a little snake game to teach myself PixiJs. What I'm trying to achieve is a smooth gliding effect when moving this block around. (press left/right to start moving)....

View Article


Mouse events - Stage.getMousePosition()

Trying to accomplish a very simple thing - get the x and y values of the current mouse coordinate. I found this method defined here...

View Article

Centering game stage

I've just picked up pixi.js as I plan to make a simple browser game and I've got some questions (sorry if those are very simple or stupid!). 1. I followed docs and ended up using Application class to...

View Article


Unable to pause video immediately on load?

Is there any way to pause a video immediately after creating the element with PIXI.Texture.fromVideo or fromVideoUrl?  It looks like it might be bugged currently, because under some circumstances the...

View Article

how to dereference with PIXI.Assets

link to recurrence i set different size Rectangle to cut image, but it looks identical how to fix it ? pixijs v7.0.5

View Article


How to let three.js‘s texture to use in pixi.js

pixi.js version: v6 I have mixed three.js and pixi.js rendering in the same context and canvas. First render three.js, then output the result to a THREE.WebGLRenderTarget instance I don't know how to...

View Article

Dynamically drawing & removing objects

Hello! I'm new to Pixi.js, and I'm building an online game with it. The server is sending data to client about player and visible objects. Currently, I create a container, add those objects and...

View Article

Image may be NSFW.
Clik here to view.

Centering and displacement issues

I have a developed a simple Pixi scene where there are 4 Sprites vertically placed. All of them have a displacement map assigned. To begin the sketch, I have set the displacement filter to have a...

View Article
Browsing all 3978 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>