![]() ![]() Find a clean way to support changing values on Sprites directly, without breaking or littering everything (consider defineProperty on them, as long as I'm good about cleaning them later).Var container, sprite1, sprite2 new Phaser. If you do not provide this option, all supported properties will be watched. Doing so will increase the performance of containers that are updated all the time (for example, using tweens). Starting at 1.2.0, you are able to provide a list of properties that will be watched using the watch option. Eg: setting the container to 0.5 will render all the children at 0.5, making them see-through when overlapping) alpha (it's currently impossible to implement this correctly.Supported properties for both the Container and che children (please update this list when submitting a PR): Use child._containerProps.property instead of directly changing a child's properties.I couldn't find a clean way to inject my own code there. ![]() This is due to the way Phaser's Class system and inheritance works. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |