PhasedEvolution Posted October 18, 2016 Share Posted October 18, 2016 Hello . Is there a way to increase the size of a 2d normal phaser sprite by some in-game interaction? . I generate the sprite to the game as a normal sprite with a certain size; . When I do some kind of input the size increases, and that includes the whole sprite (physics body and sprite image); (I don't know if tweens apply here because I am not sure if that changes the sprite physics body size). Bassicaly I want to make it grow in-game. Any idea? Thank you very much EDIT: found set.scale. Any other way? Link to comment Share on other sites More sharing options...
Mike018 Posted October 19, 2016 Share Posted October 19, 2016 Tweening the size of a sprite does increase the body size. this.game.add.tween(object.scale).to( { x: 2, y: 2 } Link to comment Share on other sites More sharing options...
Recommended Posts