Results 1 to 5 of 5

Thread: Need help with a single variable...

  1. #1
    Join Date
    Sep 2007
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Need help with a single variable...

    SCAR Code:
    FindBitmapRotated(bitmap: Integer; var x, y, Angle: Integer; x1, y1, x2, y2: Integer): Boolean;

    Now, the only variable i don't get is the "ANGLE" one, i thought I had to put in by how many degrees the camera should turn if it was not found, so i tried a number, which obviously didn't work because it wasn't a variable. Can anyone please help me with this?
    Thanks a lot ^^

  2. #2
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm not 100% sure as I normally just use findbitmap, but I believe 'Angle' has to be a var just like x and y, and not a number (like 60), so it would be
    SCAR Code:
    FindBitmapRotated(Bitmap,x,y,z,0,0,200,200)
    with 'z' being the variable it assigns the angle it finds the bitmap at to.

  3. #3
    Join Date
    Sep 2007
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, at least i don't get the error message anymore. my script isn't ready to be run yet, so I don't know if it will work, but i'm optimistic. Thanks a lot for your help! =)

  4. #4
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just a note: The angle is not for the game camera but for the bitmap. If SCAR can't find the bitmap it rotates the bitmap a certain angle.
    This sentence is false.

  5. #5
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can use any variable there what is integer, you don't have to use it...
    Angle returns degrees, in what your bmp was found...
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Loading a single DTM
    By Rich in forum OSR Help
    Replies: 5
    Last Post: 12-05-2008, 07:22 PM
  2. why cant i get even single script work? :(
    By urakkistus in forum OSR Help
    Replies: 13
    Last Post: 05-05-2007, 05:03 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
  •