Discuss Scratch

JonathanIsJony
Scratcher
1000+ posts

how do i kill a clone enemy with a clone projectile

please help
-CyberVoid-
Scratcher
23 posts

how do i kill a clone enemy with a clone projectile

when green flag clicked
forever
broadcast [tick v]
end
when I receive [tick v]
if <touching [projectile v] ?> then
delete this clone
end
Hope this helps!
FancyTigerDustBall
Scratcher
100+ posts

how do i kill a clone enemy with a clone projectile

You would do something like this:

when I start as a clone
forever
if <touching [Projectile v] ?> then
delete this clone
end
...
end
JonathanIsJony
Scratcher
1000+ posts

how do i kill a clone enemy with a clone projectile

-CyberVoid- wrote:

when green flag clicked
forever
broadcast [tick v]
end
when I receive [tick v]
if <touching [projectile v] ?> then
delete this clone
end
Hope this helps!
sorry, but i'm not making a sprite just for the projectile, but i do appreciate the help!
FancyTigerDustBall
Scratcher
100+ posts

how do i kill a clone enemy with a clone projectile

JonathanIsJony wrote:

-CyberVoid- wrote:

when green flag clicked
forever
broadcast [tick v]
end
when I receive [tick v]
if <touching [projectile v] ?> then
delete this clone
end
Hope this helps!
sorry, but i'm not making a sprite just for the projectile, but i do appreciate the help!
If the projectile doesn't have a sprite how is it represented? Is it a coordinate rendered by pen?
JonathanIsJony
Scratcher
1000+ posts

how do i kill a clone enemy with a clone projectile

FancyTigerDustBall wrote:

JonathanIsJony wrote:

-CyberVoid- wrote:

when green flag clicked
forever
broadcast [tick v]
end
when I receive [tick v]
if <touching [projectile v] ?> then
delete this clone
end
Hope this helps!
sorry, but i'm not making a sprite just for the projectile, but i do appreciate the help!
If the projectile doesn't have a sprite how is it represented? Is it a coordinate rendered by pen?
no? i don't even know how to use a pen

though i do suppose i need a new sprite
BrainGamer1234
Scratcher
18 posts

how do i kill a clone enemy with a clone projectile

needs a new sprite for projectiles or you can detect touching a colour, but it would require said colour to be unique to said projectile,

Powered by DjangoBB