Skip to main content

Questions tagged [phaser]

Phaser is a JavaScript framework for game development on desktop and mobile platforms.

Filter by
Sorted by
Tagged with
1 vote
2 answers
166 views

I have a top-down character object that is a Container of various parts. This character can have elements that should move along with it (think a health bar, a speech bubble) that should NOT rotate ...
Mara's user avatar
  • 121
1 vote
0 answers
39 views

I'm trying to figure out if it's possible to blend a (noise)texture with an image by creating a shader, and then apply the shader as a postFX to an image (or sprite). (see attached image) ...
John's user avatar
  • 294
1 vote
2 answers
220 views

I am building a real time a multiplayer web game using client authoritative server architecture, phaser, node, aws, etc. For an example, if I have a player that walks right and picks up food, I need ...
JobHunter69's user avatar
0 votes
1 answer
147 views

How can apply a shader to a graphics object, and not the whole canvas? I have a wave shader example here https://phaser.io/sandbox/6SsT2zfC, and I want the wave to be unaffected by the camera's ...
John's user avatar
  • 294
0 votes
1 answer
75 views

I'm working on expanding on the tutorial found here I currently am creating two classes based off of menu ...
Legen Diary's user avatar
1 vote
1 answer
160 views

I'm trying to recreate the following shader from shadertoy using Phaser 3: https://www.shadertoy.com/view/wdG3Rz I managed to fix the errors I was getting but it just loads an empty black square when ...
Javier Villanueva's user avatar
1 vote
1 answer
195 views

In Phaser, is it possible to fill the remaining part of the Browser window with the game's (clipped) content, and still keep the aspect ratio of the game intact? For example, I have a game which is ...
John's user avatar
  • 294
1 vote
0 answers
90 views

I am creating simple 100x100 tilemap using Tiled and Phaser, nothing more, but when I move the camero around, the "map ...
Michał Wojas's user avatar
1 vote
1 answer
452 views

I'm trying to let the player of my PhaserJS game (with MatterJS physics) move a (static?) object around. That is: the player is allowed to move the object, but otherwise it should be ...
Jeroen's user avatar
  • 695
1 vote
1 answer
62 views

I am building a multiplayer snake game and I turned on debug mode to see more details of what was happening. After a collision with an apple, the collision bounding box seems to remain and multiple ...
qbush's user avatar
  • 135
1 vote
1 answer
762 views

I am making a simple game in Phaser (but the library doesn't really matter). I have an enemy that is moving towards the player on a 2 dimensional grid. I have written some code that makes the enemy ...
yesman's user avatar
  • 113
0 votes
1 answer
269 views

I am developing a small game with Phaser 3. I want to make a container with several buttons, representing a pop-up dialog. The container needs to pop up on completing a task. When container pops up, I ...
bhagya's user avatar
  • 11
0 votes
2 answers
1k views

I am working on my first 2D game with Phaser 3. I have set up VS Code with a node.js https server and run it to deploy the game on localhost. While the game gets compiled successfully and deployed, I ...
bhagya's user avatar
  • 11
-2 votes
2 answers
225 views

I am following the tutorial for Phaser 3 game development and came across the following line of code. player.anims.play('Left', true); I am curious about the ...
bhagya's user avatar
  • 11
0 votes
1 answer
184 views

I am looking for an equation for predicting the future position of a moving arcade physics body in Phaser 3. The body has drag applied and isDamping set to true. Phaser applies the drag using the ...
Calabi's user avatar
  • 11
0 votes
1 answer
165 views

I'm currently using the latest version of phaser framework and I have a problem to which I haven't been able to figure out how to approach. I need to have a block of text appear letter by letter and ...
JamesAlex's user avatar
0 votes
1 answer
330 views

I am developing an isometric game like Anno 1602. I have an isometric tilemap. The default tilesize is 64x31. My goal is to show the area a building has influence to. For that I want to show a circle ...
pr4xx's user avatar
  • 101
0 votes
0 answers
177 views

I made a game with the Phaser game framework on a course, and now I want to add features and build upon that game. The only problem is that I built the game with the course on webpack, which served ...
GreatCoder's user avatar
0 votes
0 answers
1k views

I need an advice on creating a slot machine phaser game. So it looks like this I need to plan an approach to do the animation of the reels of the slot machine. I have idea of using tileSprite, are ...
Hrant Nurijanyan's user avatar
1 vote
1 answer
262 views

I'm using Phaser to create a small web based game, but I would like some advice on how to handle multiple resolutions and scrolling. Basically what I would like to achieve is the following : The game ...
Stnaire's user avatar
  • 111
2 votes
1 answer
6k views

I have just started learning Phaser 3 and making a simple idle game, where you would gain x resources per second. What is the best/recommended way to do something like this? The two main ways I have ...
lozzajp's user avatar
  • 780
0 votes
0 answers
96 views

I'm trying to build an '90s style rpg game, think dragon warrior series, where it will have a UI box at the bottom of the screen where the user makes a choice like attack, move, eat etc I'm thinking ...
Mike's user avatar
  • 153
0 votes
2 answers
952 views

I'm starting to develop in Phaser 3, and I'm really a begginer. I'm trying to make an attack move of an archer sprite, but I cannot make it work right... This is how I have defined the things related ...
Slifer Dragon's user avatar
0 votes
1 answer
1k views

I want to set a background color for my game. I found this solution: function create() { this.cameras.main.setBackgroundColor("#d5d5d5"); } but I want to be ...
JacopoStanchi's user avatar
0 votes
1 answer
533 views

I'm trying to set a drag event on a Phaser 3 group, but I wasn't able to achieve what I want. I was reading some Phaser 2 blogs, and they said that it isn't possible to set a drag event on a group. ...
Arthur Oliveira's user avatar
0 votes
1 answer
84 views

I'm developing a game where I need to paint half of a image when the user is either wrong or right. To paint the image, I'm using setTint() to paint the image the ...
Arthur Oliveira's user avatar
0 votes
0 answers
124 views

I have a turn-based game that is built with HTML 5 gaming framework and runs completely fine in Landscape mode. What I am trying to figure out is how to make the game run fine in both portrait and ...
Shiv's user avatar
  • 1
1 vote
2 answers
891 views

I’m trying to create a map array without using JSON because I want to dynamically generate the map: ...
PerduGames's user avatar
0 votes
1 answer
241 views

I'm writing a platformer lode-runner-like game. I would like to ask experienced people to see what's wrong. Everything seems to be ok but I am absolutely confused about 3 bugs. Why is the player ...
Madcap's user avatar
  • 3
0 votes
1 answer
810 views

I'm writing Lode Runner like platformer game. I'm trying to solve player sprite slowly moving down when on ladder by setting player.body.gravity.y = 0. I have ...
Madcap's user avatar
  • 3
0 votes
0 answers
531 views

I'm currently working on 2D rigid-body physics multiplayer game using Matter.js for physics (both the client and server side) and Phaser3 for rendering. Both the server and the client run the ...
SpeekaDievs's user avatar
1 vote
1 answer
507 views

I don't understand the behaviour of containers in this example: Phaser example The part I don't unerstand is line 41. Why is lastContainer assigned to newContainer? In line 40, newContainer is added ...
Piotr's user avatar
  • 11
1 vote
1 answer
2k views

Please consider this scene. Developed using PhaserJS 3. I want to make the slider move left when the player touches the right hand side of it, and move right when the player touches the left hand side ...
AJFaraday's user avatar
  • 111
0 votes
2 answers
259 views

I’m working with Phaser Editor, and I was wondering if it was possible to resize the scene with the editor or just plain Phaser 2. I want to resize the world, by which I mean to make a camera follow ...
Twickz's user avatar
  • 1
0 votes
1 answer
512 views

Please can somebody help me as I'm a lil bit new to game dev and user interface designing. I am trying to create a simple Texas holdem poker using phaser3 for multiplayer application. I have a few ...
user8903551's user avatar
0 votes
0 answers
54 views

There is the following platform: And a coin above it: And the following code using arcade physics: ...
Timur  Musharapov's user avatar
4 votes
0 answers
230 views

I am using the Phaser framework for game development, but while working on it I face a bug which is annoying, I have the following message: InvalidStateError: An attempt was made to use an object ...
Ced's user avatar
  • 143
0 votes
1 answer
512 views

So I actually have the following code that works: ...
Ced's user avatar
  • 143
0 votes
1 answer
218 views

I am trying out the Phaser 3 framework and I dont know why my player Object moves only left but not right... Here's another weird thing: if I swap code segmentd for move right and move left, then I ...
Parag 's user avatar
0 votes
0 answers
931 views

I am new to phaser. So I started working on a game but I am stuck at implementing collision detection. I want to do it between a static group(dot) and a Sprite(obs). function create(){ ...
Lakshya dubey's user avatar
0 votes
1 answer
1k views

I am starting to use phaser to create games and I found a problem that I can not find for more tests that I did. I can not show the images I am uploading. You only see a small square in the center, (I ...
Miguel Espeso's user avatar
0 votes
2 answers
998 views

I'm working on a 2D space shooter type of game in typescript using Phaser 3 and am trying to get a parallax background with different depths going. But I'm having trouble getting the math right. You ...
JensB's user avatar
  • 253
0 votes
1 answer
180 views

I'm making a card game to get my legs with phaser. I have an row of overlapping, face down cards. I want to detect when any card is covered by another card. The deck is shuffled before being placed ...
monsto's user avatar
  • 130
0 votes
1 answer
240 views

I have a platforming game, written in javascript with the Phaser.js framework, where my character collects objects. I thought trying to collect all objects in the least amount of jumps would be ...
B.Batiege's user avatar
0 votes
2 answers
506 views

I'm having an issue I don't quite understand, where my spritesheet is looping strangely and not showing the full sprite I want, even though I feel like I'm specifying it correctly. My code is in ...
B.Batiege's user avatar
0 votes
1 answer
243 views

We're developing a game in Phaser as a university project and have come across an obstacle. We need to detect when the mouse is over a line between two points. There are not a lot of lines, definitely ...
Andrius Ovsianas's user avatar
2 votes
2 answers
2k views

I'm writing a simple game using Phaser 3.5.1. I made a 20X20 over world tile map for my hero to walk around on with the camera following the hero. I was able to implement tile based movement using ...
Erik's user avatar
  • 151
0 votes
1 answer
2k views

I want to change the text color in my game that is build in phaser.js. But i have no idea how to do this, because i am not a coder. Can somebody help me to change the color of my game text? My Game ...
Numaan Anjum's user avatar
1 vote
2 answers
664 views

In a 2D platformer, I'd like to implement a ladder. I have collision working between the player and ground tiles. Now I would like to be able to detect when the player walks through a ladder tile (...
Tamás Szelei's user avatar
2 votes
1 answer
1k views

I am developing a game where I need to zoom in entire map also I can be able zoom out. I have created a tilemap using tiled software and rendered it using phaser.js. How can I add this function to my ...
Ashish's user avatar
  • 25