Questions tagged [pixi.js]
The pixi.js tag has no summary.
11 questions
0
votes
1
answer
106
views
BasisParser returns undefined from loading KTX2 file with custom extension
I get 'undefined' from the BasisParser that I use from Pixi itself, when loading a KTX2 file with a custom extension (through Assets.load):
...
1
vote
1
answer
96
views
How to instantly break method call?
I'm making 2d Mobile game using JavaScript.
I have method that controls every character (Dumb AI) on battleground. It using recursion to call another action. I want to add debuff system and had little ...
0
votes
1
answer
865
views
Detect how much mouse has rotated in a circle around an XY point
How can I detect if the mouse cursor is moving in a circle around a target, and calculate how many turns it's done?
For example, if I rotate the mouse 4 times around a specific XY point on the screen, ...
1
vote
1
answer
739
views
How should I go about generating a spritesheet JSON file for an existing PNG containing a grid of assets?
To get started with game development I purchased some top-down sprite assets which come arranged in a grid, but to use them with a typical 2D rendering engine (I'm using Pixi.JS), I need a JSON file ...
1
vote
1
answer
276
views
Are spritesheets worth it? Is a zip a good alternative?
I was wondering if spritesheets are worth it.
I am making a game with pixi.js and was thinking about optimization, beginning with asset loading. I currently have an arraya of all files and use PIXI....
0
votes
3
answers
2k
views
Determine when a PIXI texture is loaded to clone it
I'm in the latest PIXI v5, where my texture is made like let texture = PIXI.Texture.from(TEXTURE_URL).
The texture isn't loaded synchronously- Pixi just covers ...
0
votes
1
answer
583
views
How to get/set specific properties of a video texture in pixi.js?
I managed to get a video to play in Pixi using the following line:
this._texture = PIXI.Texture.from(require("Images/video.mp4"));
The problem is that I can'...
1
vote
1
answer
3k
views
What does all the positioning properties of sprites in PIXI.js v4 do?
What does all the position properties and functions on a pixi.js sprite / DisplayObject actually do? You can access sprite.x, ...
2
votes
1
answer
2k
views
How to create walls and rooms with Pixi
I'm a JS dev but pretty new to Pixi and 2D developemnt so please bear with me as I explain this.
I want to write a simulator for short path finding (for evacuation purposes). I decided to use Pixi.js ...
-3
votes
1
answer
217
views
How perform for obj follow mouse with angle?
how i can perform for sprite follow mouse if i change angle ?
If i change angle the sprite no more follow mouse correctly.
I absolutely need the obj follow mouse with pivot.
https://jsfiddle.net/...
0
votes
1
answer
636
views
Uncaught TypeError: Cannot read property 'Mesh' of undefined
I would like to use dragonBones with pixi.js. I got a problem.
When the following line executes in dragonBones, I am getting an error:
...