ForumsProgramming ForumRpg help

2 4598
Huntragon
offline
Huntragon
1 posts
Peasant

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?

  • 2 Replies
Koshionos
offline
Koshionos
884 posts
Jester

here try this

in your code to reduce his lives

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

} //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,593 posts
Blacksmith

wow, so complicated!

Showing 1-2 of 2