title: Apply an action to every object in group for Phaser js
body: <p>As it says, in Phaser.js how can you apply an action for each object inside a group. I want to apply the following lines to each item:</p>
  
  <pre><code>game.physics.arcade.collide(something, platforms);
  game.physics.arcade.overlap(player, something, gameOver, null, this);
  something.body.velocity.x = -120;
  </code></pre>
  
  <p>"Something" is the object name but my group name is called "obstacleGroup". I want to do this as I have another function making new objects to the group all the time so I don't necessarily know what they are being called.</p>