Relative Content

Tag Archive for phaser-frameworkphaserjsphaser

get hitbox as well as image to rotate around a point

I used Phaser.Actions.RotateAroundDistance(spinningfire.getChildren(), { x: 600, y: -1780 }, 0.02, 200) in order to make a the group spinning fire to spin around a sprite. the only problem is that the hitbox does not move with the fire image.

get hitbox as well as image to rotate around a poing

I used Phaser.Actions.RotateAroundDistance(spinningfire.getChildren(), { x: 600, y: -1780 }, 0.02, 200) in order to make a the group spinning fire to spin around a sprite. the only problem is that the hitbox does not move with the fire image.