not really :) I just made 2 sprites: the magnet and the filing, and made many copies of the filing. If you copy a sprite that has scripts, the scripts are copied as well
actually the stong parts of a magnet are the poles
you know north and south
thats why a compass points north
but if you were in the southern hemishpere
a compass would point south
yes i know, but in this case there are no poles. Poles would be hard to program without 2 sprites making up one magnet, and the "strong point" is in the center because that is the center of rotation for the magnet. I couldn't figure out how to get the filings to stick realistically, so I settled for the middle.
simple: if the distance to magnet is less than 150, point to magnet. if distance to magnet is less than 50, point towards magnet move 3 steps. if touching magnet, forever go to magnet. I then copied the filings until I had a bunch.
This is a simulation of a magnet and iron filings. The center of the magnet is the strong point, and so all the filings will go to there when attracted. Press the green flag to reset! THIS WAS FEATURED!!!!!!!! OMG !!!!!!
Comments
You need to be logged in to post comments
Add a Comment
Check out the first claymation on scrath ever!!! (link to project)
(view all replies)Comment Reply
awesome!it must of taken ages to write out all the programs for all the sprites.
(view all replies)Comment Reply
not really :) I just made 2 sprites: the magnet and the filing, and made many copies of the filing. If you copy a sprite that has scripts, the scripts are copied as well
(view all replies)Comment Reply
Cool! I love magnets too! =)
(view all replies)Comment Reply
I always loved playing with magnets! very good project!
(view all replies)Comment Reply
me too! thats what made me think of doing this in the first place.
(view all replies)Comment Reply
cool...
(view all replies)Comment Reply
I like it
(view all replies)Comment Reply
Good, But In A Real Magnet, You Can See The Poles And Feild Lines.
(view all replies)Comment Reply
yes i know, but Scratch, while it is amazing, cannot support conflicting messages, and also the number of sprites would nearly double.
(view all replies)Comment Reply
COOL.
(view all replies)Comment Reply
That's so cool!
(view all replies)Comment Reply
awsome!!:]
(view all replies)Comment Reply
I remember hearing about the magnetic field (Or it was something like that)... but it's cool!
(view all replies)Comment Reply
plz enter (link to project)
(view all replies)Comment Reply
GOOD SCRATHCHERS, I NEED HELP WITH THIS, PLEASE (link to project)
(view all replies)Comment Reply
I can`t seem to get enogh of this...
(view all replies)Comment Reply
Whoops! Caps lock on!
(view all replies)Comment Reply
tHIS is NICE! i CAN SEE WHY IT WAS FEATURED!
(view all replies)Comment Reply
thank you!
(view all replies)Comment Reply
actually the stong parts of a magnet are the poles you know north and south thats why a compass points north but if you were in the southern hemishpere a compass would point south
(view all replies)Comment Reply
yes i know, but in this case there are no poles. Poles would be hard to program without 2 sprites making up one magnet, and the "strong point" is in the center because that is the center of rotation for the magnet. I couldn't figure out how to get the filings to stick realistically, so I settled for the middle.
(view all replies)Comment Reply
i think you should make a magnet with a positive and negative side. it would be more of a game then
(view all replies)Comment Reply
its not supposed to be a game. Its just a simulation
(view all replies)Comment Reply
howd u do that?
(view all replies)Comment Reply
simple: if the distance to magnet is less than 150, point to magnet. if distance to magnet is less than 50, point towards magnet move 3 steps. if touching magnet, forever go to magnet. I then copied the filings until I had a bunch.
(view all replies)Comment Reply
(link to project)
(view all replies)Comment Reply
Cooooooooool.
(view all replies)Comment Reply
bit boring but sooooooooooooooooooooo kkl! good work
(view all replies)Comment Reply
Very clever. Simpule but I like the idea Hope you don't mind if I add it to some gallerys!
(view all replies)Comment Reply
easy but good idea!
(view all replies)Comment Reply
chicken taste goooooood
(view all replies)Comment Reply
so fun
(view all replies)Comment Reply
what do you do when you caught all the iron fillings dont make sence
(view all replies)Comment Reply
yeah its boring at the end theres no iron
(view all replies)Comment Reply
cool!
(view all replies)Comment Reply
Cool
(view all replies)Comment Reply
plaus awsome!!
(view all replies)Comment Reply
awsome
(view all replies)Comment Reply
Wow! This is so accurate! I love this!
(view all replies)Comment Reply
awsome!!!
(view all replies)Comment Reply
Nicely done. I always like simulations like this :)
(view all replies)Comment Reply
thanks! it was very easy to make!
(view all replies)Comment Reply
actually, thats not a bad idea! i will try to make a bird-flight sim my next goal!
(view all replies)Comment Reply
ok i looked ad several boids pages, and I will DEFINITELY try to make it now!
(view all replies)Comment Reply
cool reminds me of something
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
Cool! I have those things! the iron filings I mean
(view all replies)Comment Reply
Totally Rad...reminds me of a bearded magnet face I played with as a child!!
(view all replies)Comment Reply
i remember those (my gradma get's my brothers those every year) the stick/pen had a very low pow magnet in it though
(view all replies)Comment Reply
fyi: tsunami mistakenly left a couple messages on my snowflake designer project that appear to be directed to you, rather than me.
(view all replies)Comment Reply
good job though!
(view all replies)Comment Reply
oh this would be easy to make i guess
(view all replies)Comment Reply
thx
(view all replies)Comment Reply
awesome
(view all replies)Comment Reply