Ok so i am doing a survival game and i have a health bar with five different costumes to display health i want it so if the health bar is down and you eat something you get one more health and when its full and you eat something it stays the same this is what i have
this is the main character
when green flag clicked forever if touching food broadcast Healthand this is health bar
when i receive Health if costume # > Full Health next costumeand this doesnt work
Offline
switch to costume (health variable)
Offline
i Mean this is health Bar
[scratchblocks]
when i recieve Health
If
costume#< Full Health
next costume
Offline
Make "health" a variable.
Then, in the health bar,
when gf clicked forever switch to costume (health)Then, when you want to change the health, in another sprite do
change [health v] by [whatever] or do set [health v] to [whatever]and the health bar updates by itself, as long as the forever loop is running.
Last edited by joefarebrother (2012-07-03 17:28:31)
Offline
Thank You So Much
Offline