Results 1 to 6 of 6

Thread: Radial angle confusion

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Radial angle confusion

    I need a way to accurately get the angle from the minimap (not compass) but SCAR's radians angle thing is confusing the hell out of me

    Can someone explain it to me?

    EDIT:
    Yes I have googled it

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I attached a script. Look in the tutorials section. There's a good tutorial there.

  3. #3
    Join Date
    Mar 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    I attached a script. Look in the tutorials section. There's a good tutorial there.
    thats not what i'm talking about i'm talking about the radians as in what scar used to measure angles

    SCAR Code:
    function RotateBitmap(bitmap: Integer; angle: Extended): Integer; - Rotates bitmap by specified angle in radians (Pi = 180˚)

    EDIT:
    Whoops I spelt it rong in the tread title, my bad

  4. #4
    Join Date
    Mar 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *bump*

  5. #5
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    first of all we DO NOT bump topics! second why dont you just play around with it until your get it right. third just wait patiently until someone knows what they are talking about.(specifically not me)

  6. #6
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    To rotate it 360 degrees, just put for angle Pi*2.

    Or if you want to keep looking until you found it, do this:
    SCAR Code:
    for E:= 0.1 to Pi * 2 do
        begin
          MyBitmap:= RotateBitmap(MyBitmap, E);
          if(FindBitmapToleranceIn(MyBitmap, x, y, MSX1, MSY1, MSX2, MSY2, 5{the tol}))then
            break;
        end;
    But make sure to make an extended variable called E, and rename MyBitmap to your bitmap's name (and I probably wasted my time typing that because you probably know that ).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Who Caused all this Confusion?
    By cause in forum Who Are You ? Who ? Who ?
    Replies: 11
    Last Post: 12-23-2006, 08:11 PM
  2. Hah sorry about the confusion
    By Dankness in forum SRL Site Discussion
    Replies: 11
    Last Post: 10-03-2006, 07:13 PM

Posting Permissions

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