Clones are spawning in bunches

help
helpwithcode

#1

Hello!

I have a problem. I'm making a high five tapper.

It's supposed to be every time I tap it, one clone goes onto it.

But they are spawning too rapidly!

The number on the right is a developer tool I set up so you know how many clones are spawning. The top number is the high five count.

Here's the code for the clones:

What's happening?! :confused:


#2

Also, the "when circle is tapped" is there so if you tap the hand and the clone is where you tapped, it works.


#3

See: This post


#4

Doesn't work :confused:


#5

Every clone there is cloning. You need to prevent this. For that strategy, do you have the clones set invisibility to 1%? (Or if you want the invisible, 100?) if you did not it wouldn't work.

Also, is it too much to a ask why you need it to clone?


#6

You know the red mark that gets left on your hand after a really strong high five? That's what it is. :stuck_out_tongue_closed_eyes:


#7

I think he needs clones because each time you tap, you tap in a different place, and the old one still needs to fade out


#8

@Rawrbear can the clones be reused?


#9

I don't think so, that would change all of the clones' positions. :neutral_face:


#10

Clones can't be reused unless you assign them based on their values, x,y,invis,size, etc.


#11

I'm sorry to see you guys struggle with this. I know how strange clones can be. If you still want to discuss it, in order to get a solution for your special application, I'd be glad to try to help. I think I know what the issues are. -oio


#12

What are they?? :smile:


#13

Sorry, @Rawrbear, I was typing a letter to a school about hopscotch. I missed your reply. If you're still on, let me know, and I'll watch more closely, so we can get it sorted. :smile:


#14

I'm on, but I'll be offline for about 15 mins. :wink:


#15

Ok, so... quickly, then, do I correctly understand that you're getting lots and lots of clones, when you only want one at a time?


#16

Yep

20202002202002020020202 body is invalido


#17

Okay, I had the same problem. What happens is that each time you "clone", the command makes a clone of the character and of every single existing clone that has so far been made. What you end up having to do is to "tag" the original character with some identifiable characteristic, so that only that one gets cloned. That may sound complicated, but it's not. I'll keep going in the next post, as long as I know you're following me. Or that I am making sense to you. K?


#18

Okay, I see the "like." I'll put the rest in this post using "edits".

So... try this: Do something to your original characer, like make its invisibility be 1%, or rotate it by 1 degree or something.

Then, on your "When [such and so happens]" block, don't just tell it to "CLONE". Instead, put an "IF" inside of it that checks for the invisibility being 1% or the rotation being 1 degree or whatever you used. And inside of that "IF" put the CLONE command.


#19

I GET IT!! So you have to characterize it somehow, or make it have some sort of variable so it doesn't clone anything else!


#20

I'm offline now :frowning:
20202002020202