# Phaser 3

**URL:** https://phaser.discourse.group/c/phaser3/5.md

[Latest](https://phaser.discourse.group/latest.md) · [Categories](https://phaser.discourse.group/categories.md)

---

## [Learn Phaser](https://phaser.discourse.group/t/learn-phaser/15598)

<div class="topic-metadata">

**Author:** [@samme](https://phaser.discourse.group/u/samme)\
**Replies:** 0\
**Last updated:** [May 5, 2026, 8:59pm UTC](https://phaser.discourse.group/t/learn-phaser/15598 "2026-05-05T20:59:09Z")

</div>

:woman\_student: Tutorials Making Your First Phaser Game — Learn how to create a small game involving a player running and jumping around platforms, collecting stars and avoiding baddies. We’ll explain some of the core f…

---

## [\[Phaser 4\] Rect Lines Render Issue on some Mobile Devices](https://phaser.discourse.group/t/phaser-4-rect-lines-render-issue-on-some-mobile-devices/15682)

<div class="topic-metadata">

**Author:** [@m9gbr](https://phaser.discourse.group/u/m9gbr)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 6:04am UTC](https://phaser.discourse.group/t/phaser-4-rect-lines-render-issue-on-some-mobile-devices/15682 "2026-10-21T06:04:26Z")

</div>

When I create a rectangle, make it rounded then change the origin to something other than (0, 0), some lines appear from the corners of the rectangle to the top-left corner of the screen.

---

## [Looking for a simple first contribution to Phaser](https://phaser.discourse.group/t/looking-for-a-simple-first-contribution-to-phaser/15658)

<div class="topic-metadata">

**Author:** [@malmfors.samuel](https://phaser.discourse.group/u/malmfors.samuel)\
**Replies:** 2\
**Last updated:** [October 16, 2026, 11:30pm UTC](https://phaser.discourse.group/t/looking-for-a-simple-first-contribution-to-phaser/15658 "2026-10-16T23:30:32Z")

</div>

Hi! A friend and I are taking a university course about contributing to open source projects, and we’re looking into contributing to Phaser. We both have some previous experience using Phaser, but this would be our firs…

---

## [\[Phaser 4\] Black opaque background on transparent Phaser.Text textures in Phaser 4.2.1 on older iOS WebGL](https://phaser.discourse.group/t/phaser-4-black-opaque-background-on-transparent-phaser-text-textures-in-phaser-4-2-1-on-older-ios-webgl/15671)

<div class="topic-metadata">

**Author:** [@machineboy](https://phaser.discourse.group/u/machineboy)\
**Replies:** 2\
**Last updated:** [October 6, 2026, 7:24am UTC](https://phaser.discourse.group/t/phaser-4-black-opaque-background-on-transparent-phaser-text-textures-in-phaser-4-2-1-on-older-ios-webgl/15671 "2026-10-06T07:24:10Z")

</div>

In our game Tvers (www.nrk.no/spill/tvers) we got reports from people playing on older iPads that there were black backgrounds behind out letter tiles after we upgraded to Phaser 4.2.1. We spent a lot of time trying to d…

---

## [Global Gamestate controlling game objects](https://phaser.discourse.group/t/global-gamestate-controlling-game-objects/15661)

<div class="topic-metadata">

**Author:** [@baker6060](https://phaser.discourse.group/u/baker6060)\
**Replies:** 4\
**Last updated:** [September 21, 2026, 4:26pm UTC](https://phaser.discourse.group/t/global-gamestate-controlling-game-objects/15661 "2026-09-21T16:26:33Z")

</div>

Currently, my sprite classes implement a lot of game logic, such as current navigation target, the navigation itself, etc. In my current setup, one scene represents one map or level. When the scene starts, the NPCs and …

---

## [Problem with Phaser 4 rectangles.](https://phaser.discourse.group/t/problem-with-phaser-4-rectangles/15652)

<div class="topic-metadata">

**Author:** [@m9gbr](https://phaser.discourse.group/u/m9gbr)\
**Replies:** 6\
**Last updated:** [September 7, 2026, 11:33pm UTC](https://phaser.discourse.group/t/problem-with-phaser-4-rectangles/15652 "2026-09-07T23:33:07Z")

</div>

So yeah I updated my project from Phaser 3 to 4 because of the preFX problem on mobile and I’ve stumbled on yet another problem. If I create a rectangle and set its origin to (1, 0), it turns into a rectangle… yes from …

---

## [Using functions in different scenes](https://phaser.discourse.group/t/using-functions-in-different-scenes/15642)

<div class="topic-metadata">

**Author:** [@s-a3](https://phaser.discourse.group/u/s-a3)\
**Replies:** 29\
**Last updated:** [July 31, 2026, 3:41am UTC](https://phaser.discourse.group/t/using-functions-in-different-scenes/15642 "2026-07-31T03:41:08Z")

</div>

Hey there! I’ve been trying to do a new level for another of my games, but I have stumbled across an issue, copy paste. I’m trying to use, for example, collectStar() across different scenes without having to repeat it ag…

---

## [iOS Safari evicts/reloads our Phaser game tab when opened via window.open — mitigation experiences?](https://phaser.discourse.group/t/ios-safari-evicts-reloads-our-phaser-game-tab-when-opened-via-window-open-mitigation-experiences/15641)

<div class="topic-metadata">

**Author:** [@thanos-jpy](https://phaser.discourse.group/u/thanos-jpy)\
**Replies:** 0\
**Last updated:** [July 23, 2026, 6:55pm UTC](https://phaser.discourse.group/t/ios-safari-evicts-reloads-our-phaser-game-tab-when-opened-via-window-open-mitigation-experiences/15641 "2026-07-23T18:55:59Z")

</div>

Setup: Phaser 3.90 + Spine 4.1 WebGL game, mobile web. A portal page opens the game in a NEW tab via window.open(). Common iOS flow: player taps Back / switches to the opener tab → game tab goes hidden → iOS evicts it un…

---

## [Phaser 4 Reddit game](https://phaser.discourse.group/t/phaser-4-reddit-game/15626)

<div class="topic-metadata">

**Author:** [@bkirvin](https://phaser.discourse.group/u/bkirvin)\
**Replies:** 4\
**Last updated:** [July 4, 2026, 5:33pm UTC](https://phaser.discourse.group/t/phaser-4-reddit-game/15626 "2026-07-04T17:33:49Z")

</div>

I am developing a game for the reddit hackathon and the game will become unresponsive to touch and get a white bar at the bottom whenever the app is minimized. AI has given me a multitude of solutions that don’t work. H…

---

## [Change FPS during runtime](https://phaser.discourse.group/t/change-fps-during-runtime/14944)

<div class="topic-metadata">

**Author:** [@Hakimvira](https://phaser.discourse.group/u/Hakimvira)\
**Replies:** 3\
**Last updated:** [June 19, 2026, 5:22pm UTC](https://phaser.discourse.group/t/change-fps-during-runtime/14944 "2026-06-19T17:22:20Z")

</div>

I want to give the player the option to change the game FPS in the game settings. I am able to add target FPS in the game config and it works properly. However, I cannot find a way to change it during the runtime.

---

## [Template breaks when I add anything](https://phaser.discourse.group/t/template-breaks-when-i-add-anything/15625)

<div class="topic-metadata">

**Author:** [@AnchoredCoding](https://phaser.discourse.group/u/AnchoredCoding)\
**Replies:** 1\
**Last updated:** [June 17, 2026, 9:44pm UTC](https://phaser.discourse.group/t/template-breaks-when-i-add-anything/15625 "2026-06-17T21:44:36Z")

</div>

Hello, I just started getting into Phaser development so I used the command line npm create @phaserjs/game@latest to install a template to build off of. Chose a complete vite build in Javascript. The problem is that when…

---

## [Help with Test and Feedback](https://phaser.discourse.group/t/help-with-test-and-feedback/15619)

<div class="topic-metadata">

**Author:** [@1982beto](https://phaser.discourse.group/u/1982beto)\
**Replies:** 2\
**Last updated:** [June 13, 2026, 4:15am UTC](https://phaser.discourse.group/t/help-with-test-and-feedback/15619 "2026-06-13T04:15:11Z")

</div>

Hi folks. I’ve built my first game with Phaser. :smiley: Built it with Phaser 3, TypeScript, Firebase, and RevenueCat for IAP… all wrapped in Capacitor for Android and iOS. It’s been a fun project and I’d love some re…

---

## [Is Capacitor + Phaser 3 OK for iOS App Store?](https://phaser.discourse.group/t/is-capacitor-phaser-3-ok-for-ios-app-store/15019)

<div class="topic-metadata">

**Author:** [@wuxiaomo6174](https://phaser.discourse.group/u/wuxiaomo6174)\
**Replies:** 2\
**Last updated:** [June 10, 2026, 2:38pm UTC](https://phaser.discourse.group/t/is-capacitor-phaser-3-ok-for-ios-app-store/15019 "2026-06-10T14:38:21Z")

</div>

Dear all, I’m currently developing an iOS app using Capacitor and Phaser 3 and am curious if anyone has recently successfully deployed such an app on the App Store?

---

## [Physics shape is mismatching in phaser 4 matter js](https://phaser.discourse.group/t/physics-shape-is-mismatching-in-phaser-4-matter-js/15615)

<div class="topic-metadata">

**Author:** [@Avalvi785](https://phaser.discourse.group/u/Avalvi785)\
**Replies:** 0\
**Last updated:** [June 2, 2026, 6:27pm UTC](https://phaser.discourse.group/t/physics-shape-is-mismatching-in-phaser-4-matter-js/15615 "2026-06-02T18:27:43Z")

</div>

Hello everyone, I’m developing game in phaser 4 I have used codeandweb texture packer and physics editor and set all export setting for phaser when i integrating it in phaser physics shape is mismatching or missing vert…

---

## [Tileset hitboxes missaligned](https://phaser.discourse.group/t/tileset-hitboxes-missaligned/15604)

<div class="topic-metadata">

**Author:** [@s-a3](https://phaser.discourse.group/u/s-a3)\
**Replies:** 8\
**Last updated:** [May 29, 2026, 2:13pm UTC](https://phaser.discourse.group/t/tileset-hitboxes-missaligned/15604 "2026-05-29T14:13:18Z")

</div>

I’ve been trying to do a climbing action for my game via tilesets, where you can move wherever you want inside the tiles. My issue is that the player drops out whenever it touches another tile while overlaping the desire…

---

## [Phaser, flatted don’t get along, “ERROR TypeError: can’t access property “toJSON””](https://phaser.discourse.group/t/phaser-flatted-don-t-get-along-error-typeerror-can-t-access-property-tojson/15613)

<div class="topic-metadata">

**Author:** [@Heinz](https://phaser.discourse.group/u/Heinz)\
**Replies:** 1\
**Last updated:** [May 24, 2026, 3:57pm UTC](https://phaser.discourse.group/t/phaser-flatted-don-t-get-along-error-typeerror-can-t-access-property-tojson/15613 "2026-05-24T15:57:50Z")

</div>

I try to serialize an object (with flatted) which also contains phaser objects. I don’t even know which code am I supposed to paste here. I import flatted functions like this: import {stringify, toJSON, fromJSON} from …

---

## [strokePoints outside of defined coordinates](https://phaser.discourse.group/t/strokepoints-outside-of-defined-coordinates/15606)

<div class="topic-metadata">

**Author:** [@VanFraecker](https://phaser.discourse.group/u/VanFraecker)\
**Replies:** 4\
**Last updated:** [May 21, 2026, 3:57pm UTC](https://phaser.discourse.group/t/strokepoints-outside-of-defined-coordinates/15606 "2026-05-21T15:57:31Z")

</div>

Found here a similar problem, but without any reply. Right is a hex image. Left the same, but with a red debug line, but the coordinates not match. It paints the red line on the left side -1px const points = \[16…

---

## [Blurred image quality](https://phaser.discourse.group/t/blurred-image-quality/15609)

<div class="topic-metadata">

**Author:** [@ccmooc](https://phaser.discourse.group/u/ccmooc)\
**Replies:** 0\
**Last updated:** [May 21, 2026, 2:28pm UTC](https://phaser.discourse.group/t/blurred-image-quality/15609 "2026-05-21T14:28:36Z")

</div>

In mobile development, the design draft size is 750x1134. When encountering devices with higher resolution, such as smartphones, the image clarity may decrease and become blurry. Do you have any solutions for my configur…

---

## [(Phaser 4.1) RandomZone and typescript](https://phaser.discourse.group/t/phaser-4-1-randomzone-and-typescript/15601)

<div class="topic-metadata">

**Author:** [@mansour](https://phaser.discourse.group/u/mansour)\
**Replies:** 1\
**Last updated:** [May 13, 2026, 1:11am UTC](https://phaser.discourse.group/t/phaser-4-1-randomzone-and-typescript/15601 "2026-05-13T01:11:44Z")

</div>

The docs suggest that it should be possible to create a RandomZone from a shape, e.g. const emitZone = new RandomZone(new Ellipse(0, 0, 40, 30)) However typescript 6 doesn’t like it, giving the error Argument of type …

---

## [Sprite chart shows abnormality](https://phaser.discourse.group/t/sprite-chart-shows-abnormality/15600)

<div class="topic-metadata">

**Author:** [@ccmooc](https://phaser.discourse.group/u/ccmooc)\
**Replies:** 3\
**Last updated:** [May 10, 2026, 3:37pm UTC](https://phaser.discourse.group/t/sprite-chart-shows-abnormality/15600 "2026-05-10T15:37:59Z")

</div>

Sprite image display exception, resources have already been loaded, and an error occurs once a frame is specified. If no frame is specified, it will display normally. I don’t know if teachers can give me some guidance …

---

## [Sprite not appearing on a specific circumstance](https://phaser.discourse.group/t/sprite-not-appearing-on-a-specific-circumstance/15596)

<div class="topic-metadata">

**Author:** [@s-a3](https://phaser.discourse.group/u/s-a3)\
**Replies:** 34\
**Last updated:** [May 1, 2026, 2:33am UTC](https://phaser.discourse.group/t/sprite-not-appearing-on-a-specific-circumstance/15596 "2026-05-01T02:33:34Z")

</div>

I have this pretty weird issue that the sprite doesn’t show at all in this specific instance and is shown in any other instances. Yes, all the keys are written down as how they appear in the json file. For now this shoul…

---

## [How do I make the mouse do a "dash" and "Slam" move on a game that uses WASD?](https://phaser.discourse.group/t/how-do-i-make-the-mouse-do-a-dash-and-slam-move-on-a-game-that-uses-wasd/15597)

<div class="topic-metadata">

**Author:** [@Mynthoo](https://phaser.discourse.group/u/Mynthoo)\
**Replies:** 2\
**Last updated:** [April 30, 2026, 4:33pm UTC](https://phaser.discourse.group/t/how-do-i-make-the-mouse-do-a-dash-and-slam-move-on-a-game-that-uses-wasd/15597 "2026-04-30T16:33:00Z")

</div>

Hello! I’m super new to Phaser 3, and I’m trying to figure out how to use the cursor to include “slam” and “dash” like moves for a game that primarily uses WASD for player movement. For example, the player sees an enemy…

---

## [Issues making a Life HUD between scenes](https://phaser.discourse.group/t/issues-making-a-life-hud-between-scenes/15594)

<div class="topic-metadata">

**Author:** [@s-a3](https://phaser.discourse.group/u/s-a3)\
**Replies:** 7\
**Last updated:** [April 29, 2026, 12:46am UTC](https://phaser.discourse.group/t/issues-making-a-life-hud-between-scenes/15594 "2026-04-29T00:46:19Z")

</div>

Hey, I’m trying to do a life system for my game and try to use it globally. My issue is that, when I try to use this.registry.events.on it will just register the registry event once (Using a register.set with true and fa…

---

## [Making the game scale up without losing ratio](https://phaser.discourse.group/t/making-the-game-scale-up-without-losing-ratio/15592)

<div class="topic-metadata">

**Author:** [@s-a3](https://phaser.discourse.group/u/s-a3)\
**Replies:** 4\
**Last updated:** [April 28, 2026, 12:02am UTC](https://phaser.discourse.group/t/making-the-game-scale-up-without-losing-ratio/15592 "2026-04-28T00:02:43Z")

</div>

I’m trying to do a new game but the game width and height is too small to see (intentionally, to mimic NES resolution 256x224). Is there a way to scale this up so it’s visible and/or modificable by the web size without l…

---

## [Playable Ads](https://phaser.discourse.group/t/playable-ads/15590)

<div class="topic-metadata">

**Author:** [@Keuk](https://phaser.discourse.group/u/Keuk)\
**Replies:** 2\
**Last updated:** [April 23, 2026, 2:06pm UTC](https://phaser.discourse.group/t/playable-ads/15590 "2026-04-23T14:06:17Z")

</div>

Hey. Is it possible to develop playable ads for mobile using Phaserjs? Are there any issues related to the SDKs of the ad networks?

---

## [Desktop edition](https://phaser.discourse.group/t/desktop-edition/15589)

<div class="topic-metadata">

**Author:** [@gurkanpala](https://phaser.discourse.group/u/gurkanpala)\
**Replies:** 0\
**Last updated:** [April 17, 2026, 1:51pm UTC](https://phaser.discourse.group/t/desktop-edition/15589 "2026-04-17T13:51:48Z")

</div>

Sorry! The account you logged in with is not authorized to use Phaser Editor Desktop. Don’t have a subscription? Please click here. If you think this is a mistake, please contact support. Or click here to log in wit…

---

## [Setting vec3 array uniforms in Phaser 4 Filters](https://phaser.discourse.group/t/setting-vec3-array-uniforms-in-phaser-4-filters/15587)

<div class="topic-metadata">

**Author:** [@NotHere](https://phaser.discourse.group/u/NotHere)\
**Replies:** 2\
**Last updated:** [April 15, 2026, 6:37pm UTC](https://phaser.discourse.group/t/setting-vec3-array-uniforms-in-phaser-4-filters/15587 "2026-04-15T18:37:05Z")

</div>

Trying to migrate to Phaser 4, and update a custom shader I made into a filter. However, I can’t seem to use setUniform() to set a vec3 array uniform. Setting a non-array vec3 with the first three values of the same inp…

---

## [Cannot read properties of undefined](https://phaser.discourse.group/t/cannot-read-properties-of-undefined/15586)

<div class="topic-metadata">

**Author:** [@Weetamin](https://phaser.discourse.group/u/Weetamin)\
**Replies:** 2\
**Last updated:** [April 12, 2026, 3:37pm UTC](https://phaser.discourse.group/t/cannot-read-properties-of-undefined/15586 "2026-04-12T15:37:18Z")

</div>

Did not make any changes to code but there is error with loading and not working please heeeelp :slight\_smile: Uncaught TypeError: Cannot read properties of undefined (reading ‘addToRenderList’) at \_.renderWebGL (:1:…

---

## [Set Isometric image depth with line segment](https://phaser.discourse.group/t/set-isometric-image-depth-with-line-segment/6941)

<div class="topic-metadata">

**Author:** [@bolox](https://phaser.discourse.group/u/bolox)\
**Replies:** 7\
**Last updated:** [April 9, 2026, 7:23pm UTC](https://phaser.discourse.group/t/set-isometric-image-depth-with-line-segment/6941 "2026-04-09T19:23:14Z")

</div>

Hi, I would like like to manage image depth using line segment as mentionned in this video : Here’s my codpen to show you : https://codepen.io/sparkkbolo/pen/pogOvLR?editors=0010 the player is in front of…

---

## [Cannot setText after first run through of the game/switching scenes](https://phaser.discourse.group/t/cannot-settext-after-first-run-through-of-the-game-switching-scenes/11074)

<div class="topic-metadata">

**Author:** [@cats555](https://phaser.discourse.group/u/cats555)\
**Replies:** 5\
**Last updated:** [April 5, 2026, 1:22pm UTC](https://phaser.discourse.group/t/cannot-settext-after-first-run-through-of-the-game-switching-scenes/11074 "2026-04-05T13:22:00Z")

</div>

I am new to Phaser (just started learning it this weekend) and just started following tutorials/playing around with it and I hit a bug that is puzzling me. I’m hoping someone here can enlighten me on what is going wrong? …

[Next page](https://phaser.discourse.group/c/phaser3/5.md?page=1)
