Phaser is a JavaScript framework for game development on desktop and mobile platforms. This tag can be used for all versions of Phaser.
Questions tagged [phaserjs]
50 questions
0
votes
1 answer
Phaser How to mess with images set to interactive
I'm working on a game that mostly uses the mouse as a controller. It has the player using the mouse to click on in game buttons. One set of buttons are supposed to disappear after being clicked on once, but for some reason I can't get this to…

EmptyStone
- 235
- 1
- 7
0
votes
1 answer
How the Phaser3 resizes an image
I can not understand what is the discrepancy between the expected result and what is actually.
In the first example, I set the width of the gui-window to the width of the screen, and the height to 0.3 of the height of the screen, placing this on the…

Zagnetto
- 13
- 2
0
votes
0 answers
How to make collision callback function only happen once in Phaser.JS (like CollisionEnter in unity)
I'm trying to make a clicker style bullet hell and I need the player's "mouse" to collide with other objects. I can do that, but the health goes into the negatives as soon as the player touches the enemy.
I've tried using a varaible to make the…

MyBoi
- 1
- 3
0
votes
0 answers
Group co-ordinates to form a path
I have an array of x and y co-ordinates (json objects) , when plotted they form a path. I am looking to group co-ordinates which fall in the same path into a group. As you can see there are two paths from start to finish.
Background: I am using…

Sudheej
- 1,873
- 6
- 30
- 57
-1
votes
1 answer
How to add round controller in Phaser 2 game
i tried to find the solution in the library.
i find a game in github https://github.com/knagaitsev/slither.io-clone
i change many thing to this game to make it more advance but now i want to add game controller like this image in this game…

rony sen
- 25
- 6