Results 1 to 36 of 36

Thread: Pong game/Angles questions

Threaded View

  1. #1

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755

    Arrow Pong game/Angles questions

    hi!
    im making a pong game like dxball (http://www.longbowdigitalarts.com)...

    When i shoot the ball i want it to move in a specific angle...
    how do i do that?

    i've tried this code:
    VB Code:
    1. Ball(i).x = Ball(i).x + Sin(Ball(i).Angle) * 5
    2.         Ball(i).y = Ball(i).y + Cos(Ball(i).Angle) * 5

    but it doesnt move where it should all the time....
    whats wrong?
    Last edited by cyborg; Dec 11th, 2002 at 10:14 AM.
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

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