playif / play_phaser

A Dart port for Phaser 2D game engine.
MIT License
72 stars 13 forks source link

Group.sort turns the scene black #9

Closed oxysoft closed 9 years ago

oxysoft commented 9 years ago

The ugly exception is gone but calling the sort method now renders the scene completely black.

entities.sort('y', Group.SORT_ASCENDING);

I'm adding two sprites to that group, I find it kind of odd that it would render the whole scene black

playif commented 9 years ago

Hi @oxysoft, I can't reproduce the issue. Can you give me more information (or a code example)? Thanks!

playif commented 9 years ago

Hi @oxysoft, I found some typos in the Group.ascendingSortHandler function. I have fixed it! Please upgrade the package and let me know if there is any problem. Thanks a lot!

oxysoft commented 9 years ago

The exception is back

Breaking on exception: Class 'BedEntity' has no instance method '[]'.
playif commented 9 years ago

Hi @oxysoft,

Can you give me the example code? It will be helpful!

Are you sure that you upgraded to the last version (v0.10.3+1)?

oxysoft commented 9 years ago

I removed the dependency, ran pub get, added it back in and then ran pub get again and now it appears to be working correctly!