darkraziel Posted August 5, 2015 Share Posted August 5, 2015 In the phaser docs I can see that the biggest difference between Sprite and Image is that you cannot animate or add a physics body to an Image, but in Image properties you can see an animationManager. I'm a little confused about this. Anyone? ZoomBox 1 Link to comment Share on other sites More sharing options...
rich Posted August 5, 2015 Share Posted August 5, 2015 You can use animations on Images, the docs need updating. The difference between an Image and Sprite is quite minor now, it used to be a lot more noticeable when they were first implemented, but not really any longer. They're mostly kept for legacy reasons. Even I tend to just use Sprites only now. Tilde, viveketic, drhayes and 1 other 4 Link to comment Share on other sites More sharing options...
ZoomBox Posted August 6, 2015 Share Posted August 6, 2015 That's good to know ! Link to comment Share on other sites More sharing options...
darkraziel Posted August 6, 2015 Author Share Posted August 6, 2015 Thanks a lot for the answer Rich, I'll just keep using Sprites then. Link to comment Share on other sites More sharing options...
yahiko Posted August 6, 2015 Share Posted August 6, 2015 Will Phaser.Image be deprecated? Link to comment Share on other sites More sharing options...
rich Posted August 6, 2015 Share Posted August 6, 2015 Not in Phaser 2.x no, but it won't be part of Phaser 3. Link to comment Share on other sites More sharing options...
yahiko Posted August 6, 2015 Share Posted August 6, 2015 Okay... So in my mind it is deprecated. I gonna replace my occurrences of image by sprite so. Link to comment Share on other sites More sharing options...
ForgeableSum Posted March 3, 2017 Share Posted March 3, 2017 are there any performance benefits from using images? Link to comment Share on other sites More sharing options...
Recommended Posts