Catsolot Posted June 3, 2014 Share Posted June 3, 2014 I am just starting out with html5 game dev. and well programming in general. I was wondering if any of the kind folks on the html5 game dev forum could help me to learn how to make a bullet system that has 3 different types (colors) of bullets. The bullets color will effect what monsters it can hit. Thank you in advance. Link to comment Share on other sites More sharing options...
titmael Posted June 4, 2014 Share Posted June 4, 2014 Hi, you can have a look at http://gamemechanicexplorer.com/#bullets-1 Then for each bullet created you can affect it a property like type (type = 1 / type = 2 / type = 3) and when colliding with an ennemy you just check the ennemy and bullet type. If same type then the ennemy is hit. Link to comment Share on other sites More sharing options...
Catsolot Posted June 4, 2014 Author Share Posted June 4, 2014 Thank you. However i don't have much experience with Phaser so it would help if someone could post the source for what titmael said. Link to comment Share on other sites More sharing options...
XekeDeath Posted June 4, 2014 Share Posted June 4, 2014 If you look at the link he posted, the entire source is on that page. Link to comment Share on other sites More sharing options...
Recommended Posts