Category "phaser-framework"

How can I fix the visual borders bug for Phaser 3 Particles?

I use the Particle Emitter in Phaser 3 to make shooting stars in my background. This technically works great, but there is still a problem with the particles it

How can I get data from tiled map editor to my javascript file?

I have a JavaScript game, using the Phaser 2 framework, and I am trying to add a new map to my game. So I made a scene in Tiled map editor so I can export to my

Phaser JS 3: how to debug game performance

So, I'm working on a project, attempting to learn Phaser as a ruby dev (JS isn't my most confident programming language). Having run my game on a lower-spec la

How to read position x of Shape Object when during tween

I have the Circle object that extends shape and am trying to get the value of x or position of the object in 2d plane. During animation (tween) the position doe

How do you use functions in a different js file in phaser 3?

Im trying to create a js file with functions relevant to my game but i get an error message saying Uncaught TypeError: Cannot read properties of undefined (rea

Jest import statement: 'TypeError: Cannot set property 'fillStyle' of null'

I type: npm test and I get: It's interesting to note that the import statement works inside the BootScene.test.js file but it doesn't work in the imported fil

Ways to limit Phaser3 update rate?

In my Phaser3 game there is a global gameTick variable that is incremented every update. I am using this to spawn in enemies in my game every 100th update. Her

Phaser 3: Update Sprite object from canvas texture

I have created 3 canvas textures: this.textures1 = this.textures.createCanvas('canvastextures1', 450, 170) this.textures2 = this.textures.createCanvas('

Phaser 3 Sound issue on iOS

In my game, I have a video playing before the game itself begins (short instruction about the game). After the video ends, I destroy it and the game starts, but