Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted by maqu ( 16 years ago )
override public function transformWorldToScene(inPos:Point):Point {
var px:int = inPos.x * mapBlockGapX;
var py:int = Math.floor(inPos.y / 2) * mapBlockGapY;
// stagger if row is even
if (inPos.y % 2 == 0) {
px -= mapBlockStaggerX;
py -= mapBlockStaggerY;
}
return new Point(px, py);
}
Revise this Paste
Parent: 22980