Hi i made this scrolling 2d space shooter and want to give each enemy their own hp.
this is for the enemy spawner and hp bar. the hp bar originally have width 128. everytime I hit the enemy with hero_bullet, all of the enemy hp bar that reduced to half. Can someone help me ?
You can create HP_bar as container of enemy.
then you can set each HP of enemy to its HP bar
You can create HP_bar as container of enemy. then you can set each HP of enemy to its HP bar
the container is making an enemy on top of the enemy. I'm never using container before. Here is the capx if you need to look what is wrong with it drive.google.com/open
Develop games in your browser. Powerful, performant & highly capable.
This is what I fixed:
drive.google.com/open
Let me know if you have any question.
This is what I fixed: https://drive.google.com/open?id=1AS1xk_Ug9iJRA6rEU8oSGT8VZ_do6EE9 Let me know if you have any question.
https://drive.google.com/open?id=1AS1xk_Ug9iJRA6rEU8oSGT8VZ_do6EE9
thank you for your help.