dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: minigolf - ball rebounding

  1. #1
    Fat Seven Year Old
    Join Date
    Jan 2002
    Location
    British Columbia
    Posts
    78
    I've decided to try and make a mini-golf game with a top-down perspective. I know actionscript but I'm not very good at sin, cos, and tan. I was wondering how I could make the ball have a user-set rotation and then when its hit it will go in the right direction, subtly slow down, AND how to bounce it off of a wall. I know that I can just change the speed variable, but I'm not sure how I can reflect the ball off of a wall. Say if the ball was hit at a wall at a specific angle, I'd need to find out that angle, and have it bounce off in the other direction but most likely the same degree. I'm hoping this post made some sense...if anyone could point me in the right direction or post a FLA that'd be perfect thanks...

    - concrete surfer

  2. #2
    Senior Member
    Join Date
    Apr 2000
    Location
    Northern Ireland
    Posts
    2,146

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center