Discuss Scratch

YokaiWeb
Scratcher
21 posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

help theres nothing about this im making a science game but it really has nothing to do with science
Nezon
Scratcher
1000+ posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

when green flag clicked
forever
if <touching [other sprite v] ?> then
broadcast [show v]
hide
end
end

this next script is for other sprite, not the one that's going to appear,
when I receive [ show v]
hide

the next script is for both other sprites that disappear
when green flag clicked
show

and finally these are the scripts for the sprite that will appear
when green flag clicked
hide
when I receive [show v]
show

Last edited by Nezon (Sept. 29, 2020 17:30:23)

YokaiWeb
Scratcher
21 posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

Nezon wrote:

when green flag clicked
forever
if <touching [other sprite v] ?> then
broadcast [show v]
hide
end
end

this next script is for other sprite, not the one that's going to appear,
when I receive [ show v]
hide

the next script is for both other sprites that disappear
when green flag clicked
show

and finally these are the scripts for the sprite that will appear
when green flag clicked
hide
when I receive [show v]
show
yes but it is a copy of it, not the actual one. this is for the original. i want the copy to delete and the deledte this clone is not working.
YokaiWeb
Scratcher
21 posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

and
<touching [ fire] ?>
, for example, is not working, it doesnt delete the clone as it is supposed to
when green flag clicked
forever
if <touching [ fire] ?> then
broadcast [ Steam]
delete this clone
end
end
end
Nezon
Scratcher
1000+ posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

what do you mean? send link also
YokaiWeb
Scratcher
21 posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

Nezon
Scratcher
1000+ posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

unshared
YokaiWeb
Scratcher
21 posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

0k
i will share it

Nezon
Scratcher
1000+ posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

you need this instead:
when I start as a clone
YokaiWeb
Scratcher
21 posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

YokaiWeb
Scratcher
21 posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

ooohhhh ok
Nezon
Scratcher
1000+ posts

How to make a sprite appear when two sprites are touching,then make the two touching sprites dissapear?

YokaiWeb wrote:

and
<touching [ fire] ?>
, for example, is not working, it doesnt delete the clone as it is supposed to
when green flag clicked
forever
if <touching [ fire] ?> then
broadcast [ Steam]
delete this clone
end
end
end
when I start as a clone
forever
if <touching [ fire] ?> then
broadcast [ Steam]
delete this clone
end
end
end

Last edited by Nezon (Sept. 29, 2020 20:13:27)

Powered by DjangoBB