When I place the code directly where the function is called it works fine. I only get the error when I put it into a function
deley71
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Help with sprite | 2 | 320 | January 14, 2019 | |
| Phaser 3:create a sprite inside a function | 2 | 385 | October 23, 2020 | |
| How to call "this" game inside function (javascript knobby newb) | 4 | 1570 | January 11, 2020 | |
| Cannot read properties of undefined (reading 'add') | 2 | 1072 | June 18, 2023 | |
| How do I use 'this' in Phaser3? | 1 | 214 | July 15, 2022 |