New answers tagged

0

don't use addlistener on the animation you can either 1) use on on your game object (Sprite) this.on('animationcomplete', this.arrow, this); https://phaser.io/examples/v3/view/animation/on-complete-callback or 2) use the .chain function https://phaser.io/examples/v3/view/animation/chained-animation


0

First lemme explain the group behaviour here, the group game object does not have any shape or body as it is basically an Array of game objects Array<gameObject>. so it doesn't have any input events assigned. What I suggest you is As group stores all its children data in a property called children, you iterate through the children and add your mouse ...


0

To be able to get an object to properly follow the mouse pointer and at the same time have a game world that's bigger than 1 screen, by having a camera that scroll through the game world, you'll need to include the camera's position/offset when the vector between an object and the mouse position is to be calculated. To calculate the mouse' X-position in ...


Top 50 recent answers are included