Hmm well there's a lot of different ways you could get barrels to roll down. The first thing I think of, imagining the way Donkey Kong works, is that I'd give the barrels some gravity-- make them try to go down-- and then also make them bounce off of the platforms-- make them sense the color and go up as much as they fall down. My windmill animation uses this trick. Playing with the numbers you can get different properties, like if it goes up more when it hits the color than it goes down each step, it'll be bouncy!
Donkey Kong sounds very possible in Scratch, so I think you're on the right track. Don't be afraid to ask questions & post drafts if you need help getting something to work.
<3
Offline
Yes, just using a "gravity" script would be a good way to keep them on the platforms without too much complication - see the gravity blocks project.
The harder part would possibly be the rolling down hill part. I've done it here by making the different slopes out of 2 sprites - by checking to see which sprite it is touching, the barrel knows which way to roll - and if touching neither, it falls.
http://scratch.mit.edu/projects/Mayhem/13793
Last edited by Mayhem (2007-06-15 17:15:04)
Offline