Hello, mine is not working very well. THe HP Bars update wrong, somethings they are right other times not so much.
It destroys the correct Frame, HEalth, and enemy. However sometimes it works correctly (2 enemies max) but when there are 3+ enemies you need to hit them all atleast 1 to update correctly, otherwise it updates the wrong health bar.
Does this look right?
(Creation)
System Every 2.5 Seconds
-Create FrameEnemy on layer Main 0,0
-Create Dummy on layer Main Random(800,600)
-Create BarEnemy on layer Main 0,0
-Dummy set currentHealth to 5
-Dummy set maxHealth to 5
System Every Tick
-FrameEnemy Set Position to (Dummy.X - 64, Dummy.Y - 48)
-FrameEnemy Move to bottom of layer
-BarEnemy Set Position to FrameEnemy (image point 0) <--- This was the problem. Should have been also Dummy.X - 64, Dummy.Y - 48 and not image point 0.
-BarEnemy Set width to (Dummy.currentHealth * 125 (Width of image) / Dummy.maxHealth)
-BarEnemy Move to Top of Layer
Dummy CurrentHealth <
System For Each Dummy
-Dummy Destroy
->System Pick BarEnemy Instance 0
-BarEnemy Destroy
<font size="3">EDIT: SOLVED</font>
->System Pick FrameEnemy Instance 0
-FrameEnemy Destroy
Edit: For example look below:
dl.dropbox.com/u/73299017/pixRPG/index.html
<font size="3">EDIT: SOLVED</font>