Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

I load a spritesheet in preload-method and in the create-method i assign and present it. this is working if i test it locally in the browser, but when i start the server with ip and want to test it on ...
NeoGER89's user avatar
  • 530
1 vote
1 answer
91 views

I am using the phaser-ce version 2.20.0 in my project. Although being aware of the newer phaser version, I have to stick to the mentioned CE (community edition) version. When I run a simple test ...
Carsten Codes's user avatar
2 votes
1 answer
831 views

Trouble I added two Text objects to a scene. But for the latter one, I couldn't set background color to transparent. Can anyone help me? Here is the screenshot. What I tried I want the Text objects to ...
a10adotapp's user avatar
0 votes
1 answer
195 views

I just purchase Phaser Editor and trying to add an Spine Animation to my game from ,.Atlas and .skel file. Here is link to my file :GGdrive After add those 2, phaser editor seem to cannot load it. My ...
Nguyễn Hải Long's user avatar
0 votes
1 answer
230 views

Im trying to add an animation from Spine to my game using 3 spine files from phaser example , but i don't know how it work. First i load spine pack in preload() : this.load.setPath('assets/images/'); ...
Nguyễn Hải Long's user avatar
2 votes
1 answer
76 views

I followed this tutorial which works great for jumpin up and landing on top of the platform. I've setup the collision disable trick (so players can also jump down through) which also works great. My ...
Koffee's user avatar
  • 365
0 votes
1 answer
114 views

I tried adding audio in my game but when I call that audio using this.sound.add('') it encountered an error 'missing from cache' //preload scene preload () { this.load.audio('stretchAudio', './...
Newboy11's user avatar
  • 3,182
1 vote
1 answer
78 views

I'm using the latest version of Phaser 3, javascript only (no TS). I have my main scene that contains an update to a Sprite object within its self update method, like so: MainGame.js export default ...
Koffee's user avatar
  • 365
1 vote
1 answer
164 views

Im new to Phaser. I created a isometric map from Tile. here my code to create my Map: preload() { console.log('pre load mainScene'); Cay1x.preload(this); DatTrong.preload(this); ...
Nguyễn Hải Long's user avatar
1 vote
1 answer
53 views

I am adding a sprite to a group, and I expected it to be with the group’s layer, instead it is brought to the top of the canvas. Any ideas? Code: this.backObjects.add(this.target); //supposed to be in ...
LeftClickMage's user avatar
0 votes
1 answer
76 views

I have searched online for many hours for an answer, but no one seemed to be doing movement like I was. I just started my Phaser journey, and got stuck pretty early. I want my game to have movement ...
LeftClickMage's user avatar
1 vote
1 answer
62 views

I'm new to Javascript and Phaser and I came across the following code while working on a project in Codecademy this.tweens.add({ targets: obj, duration: 750, x: '-= 300', }); I know ...
mochariscue's user avatar
0 votes
1 answer
93 views

I'm planning to remove padding in my phaser canvas but when I use external css it doesn't work in my index.html I have the code below <!DOCTYPE html> <html lang="en"> <head>...
Newboy11's user avatar
  • 3,182
1 vote
0 answers
71 views

I have a simple basketball shooting game built in Phaser 3. It has a ball, a rim with a point on each side where the ball can bounce off of, and a zone underneath the rim that I use to track for ...
Jimmy Blundell's user avatar
2 votes
1 answer
391 views

So I am working on a small hobby project using Phaser 3 and have run into some issues working with Tile map layers. Right now I am creating a tilemap layer and using multiple spritesheets I'm loading ...
Daniel Dees's user avatar
0 votes
2 answers
155 views

'm trying to fit the text exactly the height of container. I set the text fontsize same as container height problem is there is a default space.I already set padding to 0. Is there a way to remove the ...
Newboy11's user avatar
  • 3,182
0 votes
1 answer
267 views

This is my first time adding audio in a Phaser (3.60.0) game and so I might have an obvious mistake but when I searched online I couldn't find an answer that fixed my problem. The error from the ...
AshBoomstick1's user avatar
0 votes
1 answer
278 views

Is there a way to get the current velocity of a sprite in Phaser or another obvious way of finding when the player is still?
AshBoomstick1's user avatar
2 votes
1 answer
61 views

const poly1 = this.add.polygon(200, 200, Ployploy, 0x0000ff, 0.2); ThisPlayer = this.matter.add.gameObject(poly1, { shape: { type: 'fromVerts', verts: Ployploy, flagInternal: true } }); //add this ...
Brenden McGraw-Hobbs's user avatar
0 votes
1 answer
79 views

I used Phaser.Actions.RotateAroundDistance(spinningfire.getChildren(), { x: 600, y: -1780 }, 0.02, 200) in order to make a the group spinning fire to spin around a sprite. the only problem is that the ...
Bilal Siddiqui's user avatar
1 vote
2 answers
458 views

I tried to get the camera to follow the player with this.cameras.startFollow(this.player) but it still did not work. it just shows a black screen, why is this? I was expecting it to follow the player ...
Bilal Siddiqui's user avatar
0 votes
1 answer
70 views

I have a variable that I want the program to continuously check its value. the code goes something like this: var score = 1 if (player touches the star) { player moves to bottom of screen score =...
Bilal Siddiqui's user avatar
0 votes
1 answer
48 views

my game has a dynamic width and height based on the users screen size. Im setting sprites at different locations on the map. The issue is that the sprites location will be off depending on the user ...
devAR's user avatar
  • 458
-1 votes
1 answer
500 views

Here is the live site: https://topi1.github.io/phaser-game/ Here is the code: https://github.com/Topi1/phaser-game Trying to deploy my first phaser game to GitHub Pages, but I get errors: Loading ...
Topi Järvinen's user avatar
0 votes
1 answer
87 views

Hi im currently making a game for facebook and i ran into a problem regarding content security policy: error message I tried changing the content security policy a bunch of times, in the end i decided ...
Hawo's user avatar
  • 1

1
2
3 4 5
45