Skip to content

Tag: phaser-framework

Change modal height based on it’s content

I’m trying to create a modal scene for my phaser 3 project. here is my current code in modal.js: as you can see in my code, I’m trying to add different contents to modal based on modelName but I couldn’t find a way to change modal height based on it’s content. how can I do this? Answer…

Phaser 3 with Unity Ads

I am trying to make a playable on Unity Ads using Phaser 3 but it seems that there are multiple specifications to use it, one of the Unity Ads specifications and as in their documentation “Advertisements should be designed not to need any network requests (XHR), but for example, analytics calls to track…

how to change character in phaser js i face issue

I set value of character but first time is work fine charter changed but when gameover then if i change the character value will be changed but character still same which i choose first time. this.charSelect is the variable where charachter name are stored. the value of this.charSelect is change but character…

Phaser 3: Show Interactable area

The game I’m creating doesn’t require any physics, however you are able to interact when hovering over/clicking on the sprite by using sprite.setInteractive({cursor: “pointer”});, sprite.on(‘pointermove’, function(activePointer) {…}); and similar. I ran into some issu…