freelyfred

Members
  • Content Count

    2
  • Joined

  • Last visited

About freelyfred

  • Rank
    Newbie

Contact Methods

  • Twitter
    freelyfred
  1. Lewis, we looked at the code too. All we are doing is looping through our local array of sprites, and setting their velocities in the update() function. On further inspection, it seems to be the depth sorting we are doing that breaks it. We can add 500+ sprites with no issues, but if we have 100 sprites with depth sorting, it starts to bog down and eventually hangs. We are thinking of implementing a chunking system with groups, and then only depth sorting groups against each other. This is great and all, but what happens with the sprites? How do we depth sort them against the groups if they can move between different groups? Ideas? Thanks for your help
  2. Hey, We have a 3/4 perspective game running at 800x800 with about 50 32x32 sprites on the screen at one time. After loading our game, within about 30 seconds with movement of our character, the game starts to bog down, shortly hangs, and we receive the error in the Javascript Console: Cannot set property '__next' of null (line 4197 of phaser.js) We are running the dev version of phaser, but have tried with the stable version with no success either. I suspect we just need to optimise our game, but it doesn't seem to be overly complicated - we are surprised that it starts to bog down with only 80 or so sprites on the screen. Any help would be greatly appreciated Thanks