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

Image may be NSFW.
Clik here to view.

pixi-sound not playing all sounds

Hello everyone, I am using pixi-sound in my game and have a very strange problem - some of the sounds are not playing, even though pixi says that they are. This is what I get when I use...

View Article


Displacement Map Question

Hi, I'm using the DisplacementFilter in Pixi.JS v5. I would like to understand exactly how displacement map images displace pixels. As they are normally grayscale, I'm wondering what the color value...

View Article


Image may be NSFW.
Clik here to view.

Confusion with generateTexture and region argument

I'm trying to mask a photo and then capture the image.  But I don't want to capture some giant texture, just a small region around the mask. Here's a gif which shows the issue quite clearly (excuse...

View Article

Chrome Browser Action Set Icon With PixiJS Sprite

I am attempting to set a PixiJS animated sprite as a chrome browser extension icon, but running into quite a few issues. Setting the app.view or app.stage as image data returns this error: Quote The...

View Article

BaseTexture not update when canvas resource update on ios

I get a problem with PIXI.BaseTexture on ios, and i'm not sure it is a bug or i use it in a wrong way. I have a PIXI.BaseTexture with canvas resource, the BaseTexture update when first update canvas,...

View Article


canvas update

i am rescaling objects using code inside the canvas room but instead of rescaling the current object a new one is being created above it i am using PIXI.Application but i dont see any option to update...

View Article

Images not rendering on mobile

I am a game developer and recently made an update to one of my games when I tested it on mobile, one of the objects was just black, completely black. The object was very big, which might have caused...

View Article

Combine multiple sprites into 1 sprite

I'am trying to create 5 sprites and combine them into 1 sprite only once. Then i create multiple objects and assign that 1 sprite to each one of those objects. My idea is that each object has 5...

View Article


Load sprites dynamically instead to load all at begining

Hi all, i'm having some troubles with loader and sprites.... I load all my general purpose sprites at begining without problems, they works fine, the problem appears when i try to load a new sprite...

View Article


How do i move animated sprites

Hi! Can´t figure out how to move a animated sprite. It´s easy with a static sprite but how do i do this with an animated one. In the example i manage to move the text but not the animated sprites....

View Article

Image may be NSFW.
Clik here to view.

Duplicating HTML5 Canvas downscaling

I've noticed that when images and text are scaled down a lot on normal canvas, they look a lot better and more sharp than with default Pixi settings. How can I get images to scale down in Pixi in...

View Article

How to get velocity from a tween

Hi, My challenge: I have a platformer in which I have platforms moving based on tweens. When the player lands on a platform, I want to add the velocity of the platform to that of the player, so that...

View Article

Need help using PixiJS from npm

I need help understanding how to use PixiJS through npm to run the example on the Docs Index page.

View Article


Image may be NSFW.
Clik here to view.

Better Collision Detection

Currently, the Sprites in my game only have rectangular collision detection, but more complex shapes for their hitArea. This makes drag & drop very nice but I am wondering if the same is possible...

View Article

Star rain

Hi! I´m a beginner regarding js and pixi and trying to learn some game dev at the same time. My aim is a simple space shooter and so far i´ve got a space ship as a animated sprite, i can move it...

View Article


Accessibility DIV causing scroll bars

When pressing TAB, new DIV element is appended to dom which causes scroll bars. renderer.plugins.accessibility.destroy(); this seem to work but is there other way to disable it so it doesnt need to be...

View Article

Performance Problems Under "2D Graphics Editing Engine"

I am using Pixi.js to make a 2d graphics editing engine similar to Figma. The demand scenario is that users need to create up to 10k+ graphics in the Container and have free editing, grouping, and...

View Article


Sprite from buffer

I am trying to display an image that I get in the form of Uint8Array. /* width: 640, height: 360, data: Uint8Array(921600) [ 89, 72, 34, 255, 97, 80, 42, 255, 105, 93, 43, 255, 117, 105, 55, 255, 117,...

View Article

Remove or Destroy Sprite

I am creating multiple sprites from same texture in PIXI v5, I have few questions:   1. When I am not going to use specific sprite anymore, do I need to remove the sprite from container with...

View Article

2D Camera

I've taken a look at pixi-viewport and I really like it except for the ease drag part and the fact that it can't return a PIXI.DisplayObject that I can add myself to the stage and render it.      t So...

View Article
Browsing all 3978 articles
Browse latest View live


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