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

#1 2010-05-24 19:04:11

DB88
Scratcher
Registered: 2010-05-20
Posts: 42

My second Scratch project .... Plinko!

Just a simulation of the Plinko game on The Price is Right.  I wanted to do something that simulated gravity and trajectories a bit, and this seemed like a fun thing to try.  It works a little better when it's downloaded than online, and I've added comments to the scripts to help people follow what I did.  It's not perfect, but it's as far as I care to take it for now, so enjoy and let me know what you think!  smile

http://scratch.mit.edu/projects/DB88/1072034


Most Recent Projects: 
Four Bar Linkage Animator:  http://scratch.mit.edu/projects/DB88/1102417  ...... Moon Defender:  http://scratch.mit.edu/projects/DB88/1092234  ..... BUGS:  http://scratch.mit.edu/projects/DB88/1095318

Offline

 

#2 2010-05-24 19:11:43

Common_Sense
Scratcher
Registered: 2009-12-21
Posts: 100+

Re: My second Scratch project .... Plinko!

It's way too buggy, I suggest you work on it more.


http://i44.tinypic.com/6dvort.png

Offline

 

#3 2010-05-24 22:01:31

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: My second Scratch project .... Plinko!

Common_Sense wrote:

It's way too buggy, I suggest you work on it more.

Hey Common_Sense - This comment isn't terribly helpful in it's present form.  Maybe you can be more specific about what bugs you have found - and maybe suggest some fixes?  That would be the friendly thing to do  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2010-05-25 00:31:20

Common_Sense
Scratcher
Registered: 2009-12-21
Posts: 100+

Re: My second Scratch project .... Plinko!

Paddle2See wrote:

Common_Sense wrote:

It's way too buggy, I suggest you work on it more.

Hey Common_Sense - This comment isn't terribly helpful in it's present form.  Maybe you can be more specific about what bugs you have found - and maybe suggest some fixes?  That would be the friendly thing to do  smile

Okay.
Sometimes it goes upwards from the bottom. I doubt that would ever happen.

Sometimes it would start from the left and go to the right without going down.
It gets stuck a lot.

More than once I've had them end up in between spaces.

It'll be slow then fast then slow then fast...

I could go on, but I'm better off listing things it does right
otherwise we'd be here all day.


http://i44.tinypic.com/6dvort.png

Offline

 

#5 2010-05-25 07:18:05

DB88
Scratcher
Registered: 2010-05-20
Posts: 42

Re: My second Scratch project .... Plinko!

Common_Sense wrote:

Paddle2See wrote:

Common_Sense wrote:

It's way too buggy, I suggest you work on it more.

Hey Common_Sense - This comment isn't terribly helpful in it's present form.  Maybe you can be more specific about what bugs you have found - and maybe suggest some fixes?  That would be the friendly thing to do  smile

Okay.
Sometimes it goes upwards from the bottom. I doubt that would ever happen.

Sometimes it would start from the left and go to the right without going down.
It gets stuck a lot.

More than once I've had them end up in between spaces.

It'll be slow then fast then slow then fast...

I could go on, but I'm better off listing things it does right
otherwise we'd be here all day.

Thanks for the comments.

1.  Sometimes it goes upwards from the bottom ........

     If you mean it bounces upward from the yellow zone, then I've never seen it do that.  If you mean after hitting one of the bottom pegs, then yes, it sometimes does that.

2. Sometimes it would start from the left ....

I don't know how this could be, since it always starts at the top in the middle of the screen?  Sometimes it will go pretty far left or right.  That's just because of the way the random numbers come out for the bounce direction.

3.  It gets stuck a lot.

I've never seen it get stuck ... ever.

4.  More than once I've had them end up between spaces.

Yes, I got lazy on that.  tongue

5.  It'll be slow then fast, then slow then fast.

I made the ricochets come off at the same speed at which they hit, and they accelerate as long as they are falling.  So they will come off faster after they fall further.  If the ball reaches its trajectory peak without hitting something, and then hits something shortly after it starts falling again, its speed won't be very high so it won't bounce too fast.

I agree, the physics is not perfect, but I'm pretty happy with the way it turned out for my second program.  I might play with it some more sometime, but for now I'm happy to let others try to improve on it.  smile


Most Recent Projects: 
Four Bar Linkage Animator:  http://scratch.mit.edu/projects/DB88/1102417  ...... Moon Defender:  http://scratch.mit.edu/projects/DB88/1092234  ..... BUGS:  http://scratch.mit.edu/projects/DB88/1095318

Offline

 

#6 2010-05-27 23:33:40

DB88
Scratcher
Registered: 2010-05-20
Posts: 42

Re: My second Scratch project .... Plinko!

Common_Sense wrote:

It's way too buggy, I suggest you work on it more.

Hey, Common_sense:  Check out the new version.  It's physics-based this time, so the motion is more realistic.  The only drawback is that trying to check for collisions with all of those sprites slows things down quite a bit.  http://scratch.mit.edu/projects/DB88/1081386


Most Recent Projects: 
Four Bar Linkage Animator:  http://scratch.mit.edu/projects/DB88/1102417  ...... Moon Defender:  http://scratch.mit.edu/projects/DB88/1092234  ..... BUGS:  http://scratch.mit.edu/projects/DB88/1095318

Offline

 

Board footer