Im working on a pokemon game but I dont Know how to make the pokemom have lifepoints.Please help me!
Offline
A life bar I think....
Offline
Maybe this project by tutorial_maker can help you out - it gives you the scripts right up-front about health meters
Offline
That didnt help much......
Someone help I also need help with causing damage!
Offline
Look at my 1: http://scratch.mit.edu/projects/johnnydean1/1023171
It has a b/w health bar in it from pokemon. And I made a PKMN game here: http://scratch.mit.edu/projects/johnnydean1/993357
Offline
I cant downloadany more things.....
Could sokeone just tell me how?
Offline
Can somone use the blocks to show me?
Offline
MossStar, is your project uploaded? If so, I can download it and try to help you.
To make HEALTH, you could create a variable (and name it health),
then you could have a sprite (called HealthBar) with multiple costumes.
Set health to, say, 100.
Set costume to "100 Health Costume"
<when green flag clicked>
<set{ health }to( 100 )
<switch to costume[ 100 Health ]
When something happens to cause you to lose health, CHANGE health by (-10),
<change{ health }by( -10 )
and Forever, if health=90
change costume to "90 Health Costume"
<forever>
<if><( <{ health }> <=> 90 )>
<switch to costume[ 90 Health ]>
Forever, if health=80
change costume to "80 Health Costume"
Forever, if health=70
change costume to "70 Health Costume"
etc, etc, etc.
That's one way to do it.
Last edited by infinitum3d (2010-06-02 19:33:18)
Offline
A more efficient way could be;
<switch to costume[ <{ health }> >
Last edited by infinitum3d (2010-06-02 19:35:49)
Offline
I made one. Took 5 minutes. Here's a link to it.
Simple Health Bar
Hope it helps!
Last edited by infinitum3d (2010-06-02 19:43:44)
Offline
Thanks for the help ive been looking everywere fore an awnser:D!Can you tell me how to cause damage?
Offline