Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image class has animation component #185

Closed
vpmedia opened this issue Apr 23, 2017 · 1 comment
Closed

Image class has animation component #185

vpmedia opened this issue Apr 23, 2017 · 1 comment

Comments

@vpmedia
Copy link
Contributor

vpmedia commented Apr 23, 2017

This Issue is about an error in the documentation or in the API (should be decided).

At the page https://phaser.io/docs/2.6.2/index#display for the Image class it states:

A lighter Game Object with a texture and input, but no physics or animation handlers.

But the class documentation at https://phaser.io/docs/2.6.2/Phaser.Image.html states that the Image class has a Phaser.Component.Animation component.
Also if I check the source code I can see the animation component included.

In my opinion the image class should not include animation.

@samme
Copy link
Collaborator

samme commented Apr 23, 2017

I think anything that uses loadTexture actually needs the Animation component. It seems to handle frame assignment.

I think in earlier versions Phaser.Image and Phaser.Sprite were more different than they are now.

@samme samme closed this as completed in f33515c Apr 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants