Jump to content

Help with game?


ceb
 Share

Recommended Posts

Hi

 

I've been practicing phaser recently but can't figure this out. The game link is below and the view source link aswell. Im trying to make all my enemies bounce off the tilemap but because im creating the enemies using a for loop this wont work enemySprite.body.setRectangle(41, 41, 0, 0); it only effects one of the enemies as you can see in the demo. Please help thanks

 

 

http://justukfreebies.co.uk/games/

http://justukfreebies.co.uk/games/js/main.js

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...