Nebula
2011-12-30 20:00:04
I'm sure this has an easy fix but I cant figure it out. Basically I want my compass to move to between 355 and 5 degrees (North,+- a bit). RandomRange doesn't work because It finds a number between 5 and 355, but since I'm using the compass it should reset to 0 at 360. Does anyone know of a fix to this? Thanks.
Edit:
Could I just make a case statement like:
Case random(2) of
0: MakeCompass(randomrange(0, 5));
1: MakeCompass(randomrange(355, 359));
MakeCompass(randomrange(355, 5));Edit:
Could I just make a case statement like:
Case random(2) of
0: MakeCompass(randomrange(0, 5));
1: MakeCompass(randomrange(355, 359));