Discuss Scratch

Lil_Cutie_Bunny
Scratcher
11 posts

How do I make different things move in a project?

So I see in different projects that people make different things like confetti and they make it look like it's moving it so I was just wondering what type of code would I put on there. Would it be something like this? Thanks!


when green flag clicked
forever
turn cw (15) degrees
turn ccw (15) degrees
end
TheAnomalousPseudo
Scratcher
1000+ posts

How do I make different things move in a project?

Check this project out. It may help you.


We ought to be careful with that octopus that takes over the servers. He's well armed.
Lil_Cutie_Bunny
Scratcher
11 posts

How do I make different things move in a project?

Oka

TheAnomalousPseudo wrote:

Check this project out. It may help you.
Okay I'll check it out
Lil_Cutie_Bunny
Scratcher
11 posts

How do I make different things move in a project?

TheAnomalousPseudo wrote:

Check this project out. It may help you.
Okay, now I don't really know what type of code that I am looking at. Does it just create a clone of itself? It's just confusing to me.
TheAnomalousPseudo
Scratcher
1000+ posts

How do I make different things move in a project?

Yes, it creates a clone and makes it move upwards with costume, size, direction randomly chosen. All you have to do is spread it out a bit.


We ought to be careful with that octopus that takes over the servers. He's well armed.
ModdGodd
Scratcher
30 posts

How do I make different things move in a project?

Hey there! So for something like confetti, you would most likely need clones. Go here, I made you a project. It is just a simple confetti engine. You can comment on there if you want it to do something in particular, I tried my best lol: https://scratch.mit.edu/projects/528873486/ (Sorry if that was not the type of help you wanted) I made it as simple as I could

((( ‎-,- :: control) :: control) :: control)
This is Tar, my pet var.
(((((((- ; - :: variables) :: variables) :: variables) :: variables) :: variables) :: variables) :: variables)
This is his brother Dan, my orangu-tan
MollyandMilodog
Scratcher
100+ posts

How do I make different things move in a project?

Lil_Cutie_Bunny wrote:

So I see in different projects that people make different things like confetti and they make it look like it's moving it so I was just wondering what type of code would I put on there. Would it be something like this? Thanks!


when green flag clicked
forever
turn cw (15) degrees
turn ccw (15) degrees
end











[scratchblocks]
[/quote]
One word: clones. Use a clone ID system like below: first create this variable: [scratchblocks]
(cloneid)

[/scratchblocks]

Last edited by MollyandMilodog (May 11, 2021 15:03:30)


irrelevant and proud
MollyandMilodog
Scratcher
100+ posts

How do I make different things move in a project?

MollyandMilodog wrote:

Lil_Cutie_Bunny wrote:

So I see in different projects that people make different things like confetti and they make it look like it's moving it so I was just wondering what type of code would I put on there. Would it be something like this? Thanks!


when green flag clicked
forever
turn cw (15) degrees
turn ccw (15) degrees
end











[scratchblocks]
[/quote]
One word: clones. Use a clone ID system like below: first create this variable: [scratchblocks]
(cloneid)

[/scratchblocks]
[/quote]
Then make sure that the clone id variable is for "this sprite only" then do this code:


[scratchblocks]
define create (number) clones of (type)
[/scratchblocks][scratchblocks]

set [ cloneid] to (type)
[/scratchblocks][scratchblocks]

repeat (number)

end
[/scratchblocks][scratchblocks]

create clone of [ myself]
[/scratchblocks]

irrelevant and proud
Lil_Cutie_Bunny
Scratcher
11 posts

How do I make different things move in a project?

ModdGodd wrote:

Hey there! So for something like confetti, you would most likely need clones. Go here, I made you a project. It is just a simple confetti engine. You can comment on there if you want it to do something, in particular, I tried my best lol: https://scratch.mit.edu/projects/528873486/ (Sorry if that was not the type of help you wanted) I made it as simple as I could
Okay, so I finished the project!


when I receive [I am having a bad day ]
hide
broadcast [When I leave]
you can show
ModdGodd
Scratcher
30 posts

How do I make different things move in a project?

Thats great!

((( ‎-,- :: control) :: control) :: control)
This is Tar, my pet var.
(((((((- ; - :: variables) :: variables) :: variables) :: variables) :: variables) :: variables) :: variables)
This is his brother Dan, my orangu-tan

Powered by DjangoBB