SRL Archive - OSR Help

MakeCompass


Iambubbleman

2013-03-09 23:25:27

I've attempted to use
P07_MakeCompassNorth;
P07_MakeCompassDegree(0);
to make the map point north, so I create a custom SPS map. Sadly, the map continues spinning endlessly with both commands.

Even using a very simple script like:

program new;
{$DEFINE SMART}
{$i SRL\SRL.simba}
{$I P07Include.Simba}
Procedure North;
begin
P07_MakeCompassNorth;
end;


begin
SetupSRL;
SRL_SixHourFix := True;
SMART_FixSpeed := True;
North;
end.

The spinning will not stop. This spinning is for all directions, and all degrees

Additionally, I attempted to just test out the CurAngle:=P07_GetCompassAngle; part of the function itself, and using that command by itself, and having it writeln, it will always result in 0.

I don't know what the problem is, or if there is another way of making the compass north (Clicking the compass doesn't work ;))

Thanks!

Brid Mayhem

2013-03-09 23:42:25

program new;
{$DEFINE SMART}
{$i SRL\SRL.simba}
{$I P07Include.Simba}


begin
SetupSRL;
SRL_SixHourFix := True;
SMART_FixSpeed := True;
[B]P07_MakeCompassNorth;
P07_MakeCompassDegree(360);[/B]
end.

Why not just put them in there?

I put 2 because they're the same thing, as with MakeCompassDegree(0);