Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-28-2002, 08:37 AM   #1
winmac
Registered User
 
Join Date: Jan 2002
Posts: 8
Default Game of billiards

Hello everyone,
I saw a dazzling game of billiards on flashacademy.com(experiment section). I have been able to make most of it except the collision(of balls) and rebounding in such a way that it looks o real.


They haven't made the source code available. plz help me do this advanced collision.

thanx in advance.
winmac is offline   Reply With Quote
Old 03-28-2002, 08:57 AM   #2
sfa
The Placid Casual
 
sfa's Avatar
 
Join Date: Oct 2001
Location: Malta
Posts: 1,026
Default

The concept is basically this. When the balls hit (using hitTest), you need to calculate a couple of thigs. I suppose you would know how to bounce the ball at different angles off a straight line. Basically when you do that you get the angle at which the ball hits the straight line and calculate the same angle on the other side of a right angle to the streight line. Now basically the right angle from the straight line in this case would be the line between the center of the ball you are bouncing against and the center of the ball in question. Then do the same as you would on a straght line.

Did you understand the concept.

SFA
sfa is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Card Match Game, Colour Me In Pictures and Board Game Total Frigging ActionScript 2.0 4 02-21-2005 01:04 AM
word search game with AS2 black General Chat 5 08-12-2004 10:44 AM
[AS2] Tile game or not tile game? krolben Gaming and Game Development 4 07-28-2004 01:41 PM
Game - freelancer required fatherb Projects and Positions 6 07-18-2003 12:47 PM


All times are GMT. The time now is 05:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.