ForumsProgramming ForumRpg help

3 4003
Huntragon
offline
Huntragon
1 posts
Shepherd

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
872 posts
Scribe

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,760 posts
Jester

wow, so complicated!

royandgrand
offline
royandgrand
242 posts
Blacksmith

ummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm......

Showing 1-3 of 3