Discuss Scratch

Tasmainiac
Scratcher
8 posts

Clone costumes

I used a broadcasted event to spawn clones using in-game buttons and now all clone sprites are changing how do i fix
when I receive [ v]
switch costume to [ v]
create clone of [myself v]
Tasmainiac
Scratcher
8 posts

Clone costumes

I need a way to assign types to the clones but i only know how to do it with random spawning instead controlling what spawns and what doesn't
LordOfTheChairs
Scratcher
29 posts

Clone costumes

Could you be more specific? If you have only certain events trigger certain sprites to make their clones, you shouldn't have any issue. What exactly are you looking to accomplish?
Tasmainiac
Scratcher
8 posts

Clone costumes

I am trying to assign costumes to only specific clones ie. a group of one type of clone has one costume and a different group has another. The game has 2 different buttons that spawn 2 different types of clones, but when pressed, it turns all existing clones into a the costume its assigned to instead of just making a new clone with the set costume. I need a way to make the buttons spawn one clone with the costume its assigned to, instead of just changing all the clones.
blockygenius37
Scratcher
71 posts

Clone costumes

Try these scripts:
Button 1 script:
when this sprite clicked
set [Costume] to [1]
create clone of [Other Sprite]
Button 2 script:
when this sprite clicked
set [Costume] to [2]
create clone of [Other Sprite]
Other sprite clone script:
when I start as a clone
if <[Costume] = [1]> then
switch costume to [costume1]
else
switch costume to [costume2]
end
If you have questions, let me know and I’ll answer them.

Powered by DjangoBB