ForumsProgramming ForumRpg help

3 3916
Huntragon
offline
Huntragon
1 posts
770

Im doing a mini rpg.But the script has a error.I want to do when the enemy has 1 or more health continue atacking and when has 0 or less go to the win screen.But when i atack him even if he has more life i go to the win screen.Who can help me?

  • 3 Replies
Koshionos
offline
Koshionos
866 posts
3,155

here try this

in your code to reduce his lives

if (opponent.lives < 0){
_root.gotoAndstop("win screen");

} //end if

or

make it so after

if (opponent.lives < 0){
you make the win screen appear on the same frame

firetail_madness
offline
firetail_madness
20,902 posts
2,710

wow, so complicated!

royandgrand
offline
royandgrand
244 posts
1,970

ummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm......

Showing 1-3 of 3