Jump to content

Search the Community

Showing results for tags 'group sprite move update'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 1 result

  1. Hello all. I just discovered Phaser.io and think it is great. I am a bit stuck, however, on how to manipulate members of a group. I have a space shooter where I spun up about a dozen enemies within a group. Now I want to select individual members of the groups to move toward the player in some pattern. I can't figure out how to get just one member of the group. I tried something like: var leader=enemies.getFirstAlive();leader.x-=1; but it did not work. Also, what if I wanted it to be a random enemy that was alive? Any guidance would be most appreciated.
  • Create New...