Discuss Scratch

Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

The spore sprite not cloning since i added a sprayer: https://scratch.mit.edu/projects/888179486

Last edited by Asyadfghjkl (Oct. 12, 2023 12:03:24)

medians
Scratcher
1000+ posts

Sprite not cloning (FIXED)

I can only see “create clone of spore” in the mouse sprite, which seems to only clone it if the mode is 1, show buttons is 0, and the player has the mouse point down and touching the border sprite.
When you made the sprayer, you set it to mode 2 for that, but that means what I said can't happen, and the value of show buttons was 1 for me when I checked (though it seems to have changed somehow).

Also, make sure to delete clones or sth because there is a 300 clone limit.

Last edited by medians (Oct. 10, 2023 11:30:36)

Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

Bump
deck26
Scratcher
1000+ posts

Sprite not cloning (FIXED)

Have you double checked the cloning conditions? Perhaps add something to a list just before creatign each clone. If nothing gets added you never hit that code but if something does get added you either have no more clones available or the clone is hidden or off-screen or something like that.
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

updates in this order:
  • i added sprayer: i cant see spores
    i added mouse and made mouse clone spores
the mouse used to have a trail made of clones
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

medians wrote:

and the value of show buttons was 1 for me when I checked (though it seems to have changed somehow).
oops i saved it with show buttons 1
EDIT: i saved it with show buttons 0

Last edited by Asyadfghjkl (Oct. 10, 2023 13:15:17)

deck26
Scratcher
1000+ posts

Sprite not cloning (FIXED)

So have you tried disabling one of your changes to see if this is a number of clones problem which seems most likely? Surely you've done some sort of investigation yourself?
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

deck26 wrote:

So have you tried disabling one of your changes to see if this is a number of clones problem which seems most likely? Surely you've done some sort of investigation yourself?
yes, it still doesn't work
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

i can't see the spores which maybe that they are not there
also spores wait 10 seconds and then they clone the moss and delete

Last edited by Asyadfghjkl (Oct. 11, 2023 11:01:22)

deck26
Scratcher
1000+ posts

Sprite not cloning (FIXED)

So have you tried my suggestion to see if the conditions are met or are you just guessing the clone script is being triggered?
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

note: i am using a tablet
deck26
Scratcher
1000+ posts

Sprite not cloning (FIXED)

Asyadfghjkl wrote:

note: i am using a tablet
What's the relevance of that?
deck26
Scratcher
1000+ posts

Sprite not cloning (FIXED)

Where do you think the spore clone is going to be created? It's not created at your mouse sprite's position just because that's what creates it - it still inherits its position from its own sprite. I think the clones just get deleted immediately because of their position.

Last edited by deck26 (Oct. 10, 2023 14:15:14)

Bill_kid123
Scratcher
75 posts

Sprite not cloning (FIXED)

300 clones limit i think
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

maybe the problem is like this project
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

ummmmmmmm… i put the sprite in the bounds
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

where the clones can be
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

Bill_kid123 wrote:

300 clones limit i think
plssss see the project
RokCoder
Scratcher
1000+ posts

Sprite not cloning (FIXED)

when I start as a clone
go to [mouse-pointer v]
point in direction (pick random (-180) to (180))
go to [front v] layer::looks
show // The sprite has to be positioned and visible before using the touching block below
if <not <touching [border cover v] ?>> then
delete this clone
end
repeat (10)
change y by (-1)
end
wait (10) secs
wait until <not<touching [moss v]>>
set [x v] to (x position)
set [y v] to (y position)
create clone of [moss v]
delete this clone
Asyadfghjkl
Scratcher
100+ posts

Sprite not cloning (FIXED)

RokCoder wrote:

when I start as a clone
go to [mouse-pointer v]
point in direction (pick random (-180) to (180))
go to [front v] layer::looks
show // The sprite has to be positioned and visible before using the touching block below
if <not <touching [border cover v] ?>> then
delete this clone
end
repeat (10)
change y by (-1)
end
wait (10) secs
wait until <not<touching [moss v]>>
set [x v] to (x position)
set [y v] to (y position)
create clone of [moss v]
delete this clone
it works

Powered by DjangoBB