Discuss Scratch

Gitman87
New Scratcher
2 posts

How to make my sprite follow other strite's clones?

Hello, I created I little rabbit breed and I want to introduce a fox which will b chasing rabbits. It can follow original 2 rabbits but not thay cone because there is no opiton i scrool menu in the block “glide to” or “go to”. ther are only option to follow cursor other original spirte.
notmemorable
Scratcher
11 posts

How to make my sprite follow other strite's clones?

Hi Gitman, if you are asking how to make the rabbits disappear when they die then look at this code:
when green flag clicked
forever
wait (1) secs
create clone of [myself v]
end

when I start as a clone
forever
if <touching [fox v] ?> then
hide
broadcast [what you want to happen when a rabbit dies v]
end
end

when I start as a clone
glide (# of secs) secs to x: (?) y: (?)

But I'm pretty sure this isn't what your asking so I will look into the problem of making one sprite follow a clone - this is stumping me!

——————————————————————————————————————————————————————————————————–
This isn't part of the code, it's my signature!
Joust
Gitman87
New Scratcher
2 posts

How to make my sprite follow other strite's clones?

Thanks for reply but actuallly I wanted the fox to consntly looking for clone rabbits so created a loops when rabbits set his X and Y possition to a global variable to which fos has access when moving and aiming to that position. thanks.

Powered by DjangoBB