Pages: 1
Topic closed
I've decided to stop using the variable for HP bars and made a sprite that is for that purpose.
However, while making the scripts I realised:
when gf clicked forever if <[500] > (Desert Dragon HP) switch to costume [costume 2 v]It wouldn't work because I had mulitple scripts following the same thing.
Offline
Anyone? This is a school project that's due in soon!
For anyone confused about the 'forever if' part, there was meant to be '500 > Desert Dragon HP' but I guess it got lost.
Offline
The1UP wrote:
I've decided to stop using the variable for HP bars and made a sprite that is for that purpose.
However, while making the scripts I realised:when gf clicked forever if <[500] > (Desert Dragon HP)> switch to costume [costume 2 v]It wouldn't work because I had mulitple scripts following the same thing.
Any suggestions?
say you want the next decrease at 400, then use
when gf clicked forever if<<[500] > (Desert Dragon HP)> and <[400] < (Desert Dragon HP)>> switch to costume [costume 3 v]then
when gf clicked forever if<<[400] > (Desert Dragon HP)> and <[300] < (Desert Dragon HP)>> switch to costume [costume 2 v]etc.
Last edited by MrMonk999 (2012-03-19 16:29:11)
Offline
MrMonk999 wrote:
The1UP wrote:
I've decided to stop using the variable for HP bars and made a sprite that is for that purpose.
However, while making the scripts I realised:when gf clicked forever if <[500] > (Desert Dragon HP)> switch to costume [costume 2 v]It wouldn't work because I had mulitple scripts following the same thing.
Any suggestions?say you want the next decrease at 400, then use
when gf clicked forever if<<[500] > (Desert Dragon HP)> and <[400] < (Desert Dragon HP)>> switch to costume [costume 3 v]thenwhen gf clicked forever if<<[400] > (Desert Dragon HP)> and <[300] < (Desert Dragon HP)>> switch to costume [costume 2 v]etc.
Ah. Now that is an excellent idea. I have no idea why I didn't see that.
Ya learn something new everyday!
Offline
The1UP wrote:
MrMonk999 wrote:
The1UP wrote:
I've decided to stop using the variable for HP bars and made a sprite that is for that purpose.
However, while making the scripts I realised:when gf clicked forever if <[500] > (Desert Dragon HP)> switch to costume [costume 2 v]It wouldn't work because I had mulitple scripts following the same thing.
Any suggestions?say you want the next decrease at 400, then use
when gf clicked forever if<<[500] > (Desert Dragon HP)> and <[400] < (Desert Dragon HP)>> switch to costume [costume 3 v]thenwhen gf clicked forever if<<[400] > (Desert Dragon HP)> and <[300] < (Desert Dragon HP)>> switch to costume [costume 2 v]etc.Ah. Now that is an excellent idea. I have no idea why I didn't see that.
Ya learn something new everyday!
XD
Offline
The1UP wrote:
MrMonk999 wrote:
The1UP wrote:
I've decided to stop using the variable for HP bars and made a sprite that is for that purpose.
However, while making the scripts I realised:when gf clicked forever if <[500] > (Desert Dragon HP)> switch to costume [costume 2 v]It wouldn't work because I had mulitple scripts following the same thing.
Any suggestions?say you want the next decrease at 400, then use
when gf clicked forever if<<[500] > (Desert Dragon HP)> and <[400] < (Desert Dragon HP)>> switch to costume [costume 3 v]thenwhen gf clicked forever if<<[400] > (Desert Dragon HP)> and <[300] < (Desert Dragon HP)>> switch to costume [costume 2 v]etc.Ah. Now that is an excellent idea. I have no idea why I didn't see that.
Ya learn something new everyday!
ifs... Better way;
when gf clicked forever switch to costume ((round ((Desert Dragon HP)/[100])) - [2])t=is it -2? well, it said "switch to costume 3" if -2 doesn't work try -1 or something...
Offline
Topic closed
Pages: 1