>We're working on a minigolf game and are discussion the best 
>implementation of the ball's bouncing behavior. The retangle objects 
>are easy, but the curves are a different story. Does anyone have any 
>experience the wish to share with us and the rest of the list on 
>this topic. If the ball e.g. hits on top of the curve it should 
>follow the path round it. Are we into hardcoding some path's????

Look into the hittest() function that works with Flash and Vector 
members. Using that you can look at any pixel on the screen and see 
if it has hit the sprite or not. By constantly modifying the 
direction of the ball based on what's ahead of it, you can get some 
interesting looking behavior. Here's something to show what's 
possible:

http://staging.funnygarbage.com/colin/irregular.dcr

In this you have control of the white triangle. Use the space bar to 
speed up and the left and right arrow keys to steer.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to