This site requires JavaScript, please enable it in your browser!
Greenfoot back
-nic-
-nic- wrote ...

2012/4/9

error

1
2
danpost danpost

2012/4/10

#
Why not just this?
setImage("" + ((int) (Bosshealth.getValue() / 10)));
-nic- -nic-

2012/4/11

#
ill have a try
SPower SPower

2012/4/11

#
Instead of
setImage("" + ((int) (Bosshealth.getValue() / 10)));
You could say:
setImage(Integer.toString((int) (Bosshealth.getValue() /10)));
-nic- -nic-

2012/4/11

#
but if the bosses health is at 1500 the png will have to be 0 and 1490=1 ect
danpost danpost

2012/4/11

#
Then subtract the value from 150!
-nic- -nic-

2012/4/12

#
hand on forehead moment
You need to login to post a reply.
1
2