Discuss Scratch

gavinator11
Scratcher
2 posts

How do I make a sprite hide when it is touched by another sprite

peekaboo3
Scratcher
39 posts

How do I make a sprite hide when it is touched by another sprite

This may help


<touching [everything but not stage v] ?>
Mayactrs
Scratcher
65 posts

How do I make a sprite hide when it is touched by another sprite

I was wondering about something else. How do you make sprites hide when there not touching something. For example: what would you do if you wanted to click a done button and everything that wasn't touching sprite one to hide?
swagmaster_bru
Scratcher
36 posts

How do I make a sprite hide when it is touched by another sprite

[
when green flag clicked
forever

if <touching [Awesome Sprite] ?> then
hide
end

end
simongolf03
Scratcher
15 posts

How do I make a sprite hide when it is touched by another sprite

coder9902htm4a0 wrote:

I actually know how to do this, but I can't get it to work without having to have the target sprite move. Could I please have some help with this?
when green flag clicked
forever

if <touching [Sprite 1] ?> then
Do anything
end

end
lalafigurinha
Scratcher
27 posts

How do I make a sprite hide when it is touched by another sprite

i think you need put this:

forever

if <touching [ your power] ?> then
hide

end

end
Miou4
Scratcher
100+ posts

How do I make a sprite hide when it is touched by another sprite

Simple :

when green flag clicked
show
forever

if <touching [SpriteName v] ?> then

hide
end

end
dragon105
Scratcher
2 posts

How do I make a sprite hide when it is touched by another sprite

Brad126735 wrote:

Try this, for a sprite named ‘Banana’ touching ‘Hand’:
when green flag clicked
forever
if <touching [banana] ?> then
move (10) steps
end
end
um, I can not get a sprite to move and obey the script.
david64074
Scratcher
9 posts

How do I make a sprite hide when it is touched by another sprite

but what if i want it to show back up
imani21
Scratcher
10 posts

How do I make a sprite hide when it is touched by another sprite

To do this here is what I would do:



when green flag clicked
if <touching [ v] ?> then
hide

end
bronco14boy
New Scratcher
22 posts

How do I make a sprite hide when it is touched by another sprite

can anyone help me? I'm making a game and i need one of my sprites to disappear when it is touched by another one, but cant figure out how to do that.
Ataxaos
Scratcher
500+ posts

How do I make a sprite hide when it is touched by another sprite

bronco14boy wrote:

can anyone help me? I'm making a game and i need one of my sprites to disappear when it is touched by another one, but cant figure out how to do that.

Don't necropost! If you don't know what necroposting is, please read this before you continue. It will help!
When you encounter a problem, the best thing you could do is to read every single post on a topic about the same issue.
I'm guessing you haven't done that, since someone posted an identical solution to mine on the very first page of this topic.
If the problem persists even after you've tried everything from the forum posts you read, make a new topic on the problem and ask your question there.
Also, post the link to the game you're making when you ask for help: it makes potential helpers spot the problems way easier!
when green flag clicked
forever

if <touching [Another One v] ?> then

hide
end

end
Vetpetmon
Scratcher
1000+ posts

How do I make a sprite hide when it is touched by another sprite

swagmaster_bru wrote:

[
when green flag clicked
forever

if <touching [Awesome Sprite] ?> then
hide
end

end
Well done, though I would modify it so that it doesn't cause lag;

when green flag clicked
repeat until <[var1] = [1]>

if <touching [Sprite1 v] ?> then

hide
end

end
That way, it doesn't keep on running. If something runs forever, it can be too much for the program and/or the computer if it runs long enough.
*cough*cough*SLAPPY*cough*cough*
freddyot
Scratcher
1 post

How do I make a sprite hide when it is touched by another sprite

I have no idea
Pxci
Scratcher
79 posts

How do I make a sprite hide when it is touched by another sprite

Please do not Necropost, I know this post is almost a week ago, but this is still considered a Necropost.
Ataxaos
Scratcher
500+ posts

How do I make a sprite hide when it is touched by another sprite

Pxci wrote:

Please do not Necropost, I know this post is almost a week ago, but this is still considered a Necropost.
The necropost is strong with this topic… I was pretty sure I reported it to be closed the last time it was bumped up; I'll do it again.

Powered by DjangoBB