Easy Way To Make Health Bar

Hey i found a easy way how to make a Heath bar So im going to tell everyone so they can know too
1.)first make a health bar with multiple frames, (mine has 11 frames).
http://i161.photobucket.com/albums/t220/_CAAZ_/HB.jpg
2.)Then change the animation to "STOPPED" in "Draw Actor".
3.)Next make two actors ( for now lets just call them "A" and "B").
4.)Again go to "Draw Actor" of the Health Bar actor and put in the code:
Have it "Wait For Frame Action" then put in the last frame number (mine would be 11)
5.)When "A" collides with "B" use script editor and put in the code:
And I think thats all!
Sorry for my misspelled words.
i hope it helps!
For a Health Package/whatever you want to call it use the code
P.s.Why cant i name an actor "B"?
1.)first make a health bar with multiple frames, (mine has 11 frames).
http://i161.photobucket.com/albums/t220/_CAAZ_/HB.jpg
2.)Then change the animation to "STOPPED" in "Draw Actor".
3.)Next make two actors ( for now lets just call them "A" and "B").
4.)Again go to "Draw Actor" of the Health Bar actor and put in the code:
- Code: Select all
DestroyActor("A");
Have it "Wait For Frame Action" then put in the last frame number (mine would be 11)
5.)When "A" collides with "B" use script editor and put in the code:
- Code: Select all
HealthBar.animpos++;
And I think thats all!
Sorry for my misspelled words.
i hope it helps!

For a Health Package/whatever you want to call it use the code
- Code: Select all
HealthBar.animpos--;
P.s.Why cant i name an actor "B"?