Results 1 to 6 of 6

Thread: MakeCompass('n')

  1. #1
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default MakeCompass('n')

    the MakeCompass('n'); is that suppose to move the compass so it faces north because it never works for me

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, It works fine for me... post the procedure it is in.
    SUMMER BREAK be back when I want to

  3. #3
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    here can it be used in main
    SCAR Code:
    begin
    setup;
    MakeCompass('n');
    walktothebank;
    depositwachagot;
    end.
    "your always where you supposed to be"

  4. #4
    Join Date
    Mar 2006
    Location
    United States, -7:00 GMT
    Posts
    1,790
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    U could do PerfectNorth; maybe, its just eazier, and if thats giving u troubles, might as well? ;P

    hakuna matata ;)

  5. #5
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ty ill try it
    "your always where you supposed to be"

  6. #6
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Try this, it should work fine.

    Code:
    program TestCompass;
    {.include SRL/SRL.scar}
    var i:integer;
    begin
      SetupSRL;
      ActivateClient;
      repeat
        i:=random(4)+1;
        Writeln('StartPos = '+IntToStr(FindCompassAngle));
        case i of
          1: Writeln('N');
          2: Writeln('S');
          3: Writeln('E');
          4: Writeln('W');
        end;
        case i of
          1: MakeCompass('N');
          2: MakeCompass('S');
          3: MakeCompass('E');
          4: MakeCompass('W');
        end;
        Writeln('EndPos = '+IntToStr(FindCompassAngle));
        Wait(1000+random(500));
      until false;
    end.
    It could be because your client window does not have focus when you try to rotate the screen.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MakeCompass... help?
    By Jakez27 in forum OSR Help
    Replies: 16
    Last Post: 12-23-2008, 03:44 PM
  2. MakeCompass?
    By Naum in forum OSR Help
    Replies: 7
    Last Post: 01-18-2008, 09:31 PM
  3. MakeCompass
    By passiondrive in forum OSR Help
    Replies: 2
    Last Post: 07-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
  •