Group is broken in Invader example
I could find 2 problems with the Group in Phaser 2.0(Invader Example)
- Group.x = value or Group.y = value only set the image in the correct place, but the body of the sprite remains in their original place, where they were made 2.Group+tween causes even a weirder problem. Even though i made the sprites at the correct position, the tween somehow offsetted the sprites.
The example works fine here. If you're not actually positioning the sprite itself, but via a group, then you have to set the body to moves = false (as we did in the invaders example).
Try to shoot the aliens on the right side. I tried it and it does not work. I used the official examples on exapmles.phaser.io
Because of this bug some bullets came out at weird places.
Another little bug is the bullets are not killed when they are out of bounds, because the checkWorldBounds is false. After some time there will be no bullets.
I even made a video: http://www.youtube.com/watch?v=QO_cyobYQIU
I have the exact same issue.
Use the version from the examples repo, it doesn't do it there. This should be on the examples site as well now too.
I am using the examples from the repo. The issues are these: when you shoot, the bullet collides with the body version of the enemy that doesn't match up with the sprite, so when you explode it, the sprite several enemies away will disappear. Also, like StrykerKKD said, the bullets run out after a while.
I just did a pull on the phaser-examples repo and it's still happening. I'm running Phaser off of an apache server on Ubuntu 13.10. I tried it with Chrome and Firefox and the same thing happens.
Sorry let me be more specific, you need the examples repo version of the game plus the dev branch of phaser. You'll find that combination will work as expected. Dev branch is literally just master with around 5 bug fixes in (so far anyway).
Thanks, now it works. And sorry for reporting an issue on the master branch. (I should have read about contributing before submitting an issue)