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

#1 2012-05-17 09:09:36

xxwn
New Scratcher
Registered: 2012-05-17
Posts: 1

I am trying to make a pool game(like 8 ball pool)

can anybody help me with the scripts?

Offline

 

#2 2012-05-17 09:23:23

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: I am trying to make a pool game(like 8 ball pool)

This is a pretty intensive programming project.  Be aware that in 8-ball, there are 16 balls total (15 colored + cue ball), so in every frame, you have to check (15+14+13+12+11+10+9+8+7+6+5+4+3+2+1) = 120 different collisions.  That's a significant amount of processing time for Scratch.

Offline

 

#3 2012-05-22 14:01:23

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: I am trying to make a pool game(like 8 ball pool)

This is not an easy game to simulate.

Here is something to get you started: http://scratch.mit.edu/projects/realSAB/1131095


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#4 2012-05-22 15:10:48

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: I am trying to make a pool game(like 8 ball pool)

Offline

 

Board footer