Discuss Scratch

misty956
Scratcher
3 posts

how do i make a clone have a health system?

i know how to make a sprite have health, but i do not know how to get a clone to have its own independent health.
Luke52712
Scratcher
24 posts

how do i make a clone have a health system?

Hello, misty956!

First, create a variable only for the sprite. You can name it anything, but I will name it “health”

Then, make a clone.
when green flag clicked
set [Health] to [3]
create clone of [myself]

Then, that clone has a seperate health system. If you want to go any further with that, let me know.

That is the less customizable way. Here is another approach to it:

when green flag clicked
create clone of [myself]
when I start as a clone
set [Health] to [3]


WIKI TO THIS IF YOU NEED ANY MORE HELP!
Wiki

Last edited by Luke52712 (March 22, 2024 21:30:37)


Luke52712 (he,him,his)
Python and Scratch coder
Loves helping people!

Scratch | Studio
misty956
Scratcher
3 posts

how do i make a clone have a health system?

thank you
Luke52712
Scratcher
24 posts

how do i make a clone have a health system?

No problem! Just ask if you have any further questions

Luke52712 (he,him,his)
Python and Scratch coder
Loves helping people!

Scratch | Studio

Powered by DjangoBB