Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Clone issue
- Andrey_True
- Scratcher
1 post
Clone issue
Hi, I'm new at scratch. I need to make the following happen when pressing the space bar button:
1) The bomb sprite moved to the player's coordinates
2) a clone of the bomb sprite was created
3) the slope changed 28 suits, after which it is removed.
It is important that when you click multiple times, different clones are created, and the previous ones remain in place.
When you press the space bar, a clone is created, but when you click again, the old clone is deleted and a new one is created. How can I fix this?
1) The bomb sprite moved to the player's coordinates
2) a clone of the bomb sprite was created
3) the slope changed 28 suits, after which it is removed.
It is important that when you click multiple times, different clones are created, and the previous ones remain in place.
When you press the space bar, a clone is created, but when you click again, the old clone is deleted and a new one is created. How can I fix this?
- reddragon5480
- Scratcher
46 posts
Clone issue
For 1.
That's all I can think of. Not sure if it works really, but I just went with my knowledge. If I'm wrong, that's alright, You can always get someone else to help.
when green flag clicked
hide
create clone of [Bomb v]
when I start as a clone
go to [Player v]
That's all I can think of. Not sure if it works really, but I just went with my knowledge. If I'm wrong, that's alright, You can always get someone else to help.
Last edited by reddragon5480 (March 24, 2024 00:29:22)
- kooqle
- Scratcher
100+ posts
Clone issue
You can try something like this:
when [space v] key pressed
create clone of [ Bombv]
Hosted by fluffygamer at the imagif hosters.
- Discussion Forums
- » Help with Scripts
- » Clone issue