This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-06-14 14:21:17

Scialex
Scratcher
Registered: 2007-06-03
Posts: 2

DOnkey Kong

I am thinking of doing a Donkey kong game i have a few questions 1 how could i get the barelles to roll down 2 can anyone tell me where i could get some sprites for this
thanks

Offline

 

#2 2007-06-14 18:48:16

mungojelly
Scratcher
Registered: 2007-05-19
Posts: 35

Re: DOnkey Kong

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

 

#3 2007-06-15 16:16:02

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: DOnkey Kong

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)


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer