Discuss Scratch

Mathex160
New Scratcher
13 posts

Killing a Sprite

Can Somebody please tell me how to kill a sprite? I know you can't, but I mean like teleporting a sprite to another position when it touches a certain sprite (like a red spike or something).
This is what I tried, but it didn't work.

iftouchingSprite3?thengotox:-181y:-80

But THAT didn't work, so I tried to see if colors would REACT.

ifcoloristouching?thengotox:-181y:-80

THAT didn't work either.
I'm really confused ; Can Somebody help me?

Last edited by Mathex160 (March 13, 2017 16:07:51)

Paddle2See
Scratch Team
1000+ posts

Killing a Sprite

You may be having a problem because of when the check is happening. Try putting those inside a Forever loop so that it is checking continuously.
Mathex160
New Scratcher
13 posts

Killing a Sprite

Ok, I'll try!!!
Mathex160
New Scratcher
13 posts

Killing a Sprite

Nope, didn't work. This is what I tried:

foreverifcoloristouching?thengotox:-181y:-80

I also tried the color one. Why isn't it working?!

Last edited by Mathex160 (March 14, 2017 01:35:59)

RAB2004
Scratcher
30 posts

Killing a Sprite

Try This
foreveriftouchingcolor?thengotox:-181y:-80
Mathex160
New Scratcher
13 posts

Killing a Sprite

Ok!
Mathex160
New Scratcher
13 posts

Killing a Sprite

That didn't work either!
But it might have something to do with the layers…
If you have any other recommendations, please post them!
Mathex160
New Scratcher
13 posts

Killing a Sprite

I'm such a noob at Scratch…
RAB2004
Scratcher
30 posts

Killing a Sprite

Try a different color
Hold on to the color of the red and then click the color you want
RAB2004
Scratcher
30 posts

Killing a Sprite

Mathex160 wrote:

I'm such a noob at Scratch…
Don't discourage yourself
Trust me what I see you are trying to do is way better than what I tried to on scratch when I started keep your hopes up
Just keep saying I can do it!!!
RAB2004
Scratcher
30 posts

Killing a Sprite

Try putting the code I can try fixing it
HoofEMP
Scratcher
100+ posts

Killing a Sprite

RAB2004 wrote:

Try putting the code I can try fixing it
or better yet, a project link. :p
deck26
Scratcher
1000+ posts

Killing a Sprite

This would have been solved by now if you're given us a link to a shared project.
Mathex160
New Scratcher
13 posts

Killing a Sprite

Yeah, But problem is, is that this is my first project. So I can't publish it until I figure out how to kill a sprite.
Hang on though…
Ok, I have an idea! I'm going to share my project, but you'll have to remix the character's (Sprite4's) coding.
Once you've done that, go share it as a remix and leave a link to it to me in this Discussion.

NOTE:
Do not change the other sprite's scripts unless you absolutely
have to.
RAB2004
Scratcher
30 posts

Killing a Sprite

Mathex160 wrote:

Yeah, But problem is, is that this is my first project. So I can't publish it until I figure out how to kill a sprite.
Hang on though…
Ok, I have an idea! I'm going to share my project, but you'll have to remix the character's (Sprite4's) coding.
Once you've done that, go share it as a remix and leave a link to it to me in this Discussion.

NOTE:
Do not change the other sprite's scripts unless you absolutely
have to.
Have you shared it?

Last edited by RAB2004 (March 14, 2017 15:44:40)

Mathex160
New Scratcher
13 posts

Killing a Sprite

RAB2004
Scratcher
30 posts

Killing a Sprite

Mathex160 wrote:

Oh, here's the link:

https://scratch.mit.edu/projects/149454708/
Fixed it
RAB2004
Scratcher
30 posts

Killing a Sprite

RAB2004 wrote:

Mathex160 wrote:

Oh, here's the link:

https://scratch.mit.edu/projects/149454708/
Fixed it
Better than my first game for sure
Mathex160
New Scratcher
13 posts

Killing a Sprite

Great! I may have future Problems so always check back!

THANKS!!!!
Mathex160
New Scratcher
13 posts

Killing a Sprite

RAB2004 wrote:

RAB2004 wrote:

Mathex160 wrote:

Oh, here's the link:

https://scratch.mit.edu/projects/149454708/
Fixed it
Better than my first game for sure

It isn't letting me go to this link

Powered by DjangoBB