Wizzup?
2007-12-29 05:53:24
Personally, I'd rather have Smart-Scar side use TPoint's.
A path is a TPointArray. A Tile is a TPoint.
Like GetMyPos. Should return a TPoint. TileToMinimap. Same thing.
I think we should quickly jump to TPoints?
Like this..
A path is a TPointArray. A Tile is a TPoint.
Like GetMyPos. Should return a TPoint. TileToMinimap. Same thing.
I think we should quickly jump to TPoints?
Like this..
function GetMyPos: tpoint;
var
me: Integer;
begin
me:= SmartGetFieldObject(0,MyPlayer);
result.x:= SmartGetFieldInt(0,BaseX) + SmartGetFieldInt(me,CurrentX) shr 7;
result.y:= SmartGetFieldInt(0,BaseY) + SmartGetFieldInt(me,CurrentY) shr 7;
SmartFreeObject(me);
end;