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
Sprite.alive and other properties not set intrinsically #841
Comments
Yeah I saw the thread. From what I can tell it's just the alive property though, I can't see anything else missing. visible for example is most definitely defined properly. |
I may need to get my eyes checked, can't seem to see where it's defined, though you're right, it does get defined... Anyway, looks like that's got it :) |
visible is a pixi level property, look further up the prototype chain for it. |
Aha :) |
It appears that some properties are not set intrinsically within the Sprite object, including visible and alive. One of the side effects of this is that if the Sprite object (or anything extended from it) is instantiated directly rather than through the factory methods, alive is never set, and so the damage method does not function correctly. See the following post: http://www.html5gamedevs.com/topic/6609-extending-sprite-and-damage/
Is there a specific reason for this, or is it an oversight?
The text was updated successfully, but these errors were encountered: