Discuss Scratch

Disconnect4987
Scratcher
31 posts

Clones being funky

So, I have some things I want to clone, but when I went to clone them, they didn't show up despite me having a show block under them when I start as clone hat.
It looks a little like this.
when I receive [ paint - extras]
if <(room) = [bedroom]> then
go to x: (0) y: (0)
switch costume to [ bed]
create clone of [ myself]
end

when I start as a clone
show
This, again, should work in theory, but it isn't. Any clue why?
cheekybubba5
Scratcher
100+ posts

Clones being funky

Hello!
From what I know, there are three main issues when I'm trying to get a sprite or clone to show.

1. Make sure the clone is actually visible
2. Make sure the clone is at the top-most layer
3. Make sure the clone's “Ghost effect” is set to 0

when I start as a clone
show
go to front
set [ghost v] effect to (0)

Let me know if this still doesn't fix the issue.
Disconnect4987
Scratcher
31 posts

Clones being funky

still didn't fix it. I'm not sure what is going on here.
whats-his-name
Scratcher
39 posts

Clones being funky

A few notes: there is a 300 clone limit. I doubt that you have exeeded this limit, but it's best to check. (sometimes the clones can create clones of themselves, thus exeeding the limit very quuckly. This can cause new clones not to be made when they should. Secondly, make sure to check that your “when I start as a clone” script is not in conflict with another in that sprite. If, for example, you had another sprite that said
when I start as a clone
hide
That would be bad. Obviously this is hyperbole, but it is possible that you have another script canceling out this script.
Thirdly, remember that clones also do all scripts that start after they are created. So if you have
when green flag clicked
wait (5) secs
create clone of [myself v]
wait (5) secs
say [hello there] for (2) secs
The clone wouldn't say “hello there” but if you had
when green flag clicked
create clone of [myself v]
broadcast [say hello there v]
when I receive [say hello there v]
say [hello there] for (2) secs
Then the clone would receive the message and say hello there. This is to say that maybe you have a clone that is created and immediately does something you don't want it to do. Another possibility is that it is under another sprite. I know that this was already addressed, but you should check whether another sprite has something like
forever
go to front
end
In this case, simply going to the front once isn't enough.
And last, but not least, if every suggestion is fruitless, think about whether you need a clone there. Could you replace it with another sprite?
deck26
Scratcher
1000+ posts

Clones being funky

Share the project and you'll gewt an answer far quicker. All we can do is guess otherwise. A single script out of context is not enough.
Gladius247
Scratcher
95 posts

Clones being funky

Check if your sprite isn't hidden or has any effect. I could help more if you put a link to the project.
Disconnect4987
Scratcher
31 posts

Clones being funky

https://scratch-mit-edu.ezproxyberklee.flo.org/projects/897345145/

the initial scene after you click new game should have a dresser that is chained shut, a bed, and a door. all are in the top left, top right. and bottom right respectively.

the stuff im trying to clone is under the extras sprite

Last edited by Disconnect4987 (Nov. 5, 2024 18:23:05)

abrakaidabra
Scratcher
100+ posts

Clones being funky

Ok, from what I’m seeing it looks like the sprite is cloning fine, but then the clones get immediately teleported to the bottom-right corner
Disconnect4987
Scratcher
31 posts

Clones being funky

what
Disconnect4987
Scratcher
31 posts

Clones being funky

that shouldnt be happening. theres nothing to move the clones there.
Disconnect4987
Scratcher
31 posts

Clones being funky

ok i did a bit of fiddling with the code, and got everything in place. Now everything is turning into what it should be for a brief moment and then they all become doors.

edit: they would only show up and turn into doors after i manually activated the when i start as clone script

Last edited by Disconnect4987 (Nov. 5, 2024 19:24:54)

klei3blue
Scratcher
1 post

Clones being funky

Same I have a problem too here
My game is Ball clicker
Problem is with cloning the upgrade as i need to do it maunally

Powered by DjangoBB