Skip to content

Center Map

Created by: newcreativegamer

Hi,

Not sure if you wanted to add this as a feature, but I changed a line to allow the map to always be centred on the screen. MapView.cs, line 264. Might be worth adding it in as an option? Anyway, thought I'd send it on!

From: firstParent.transform.localPosition += new Vector3(offset, -bossNode.transform.position.y, 0);

To: firstParent.transform.position = new Vector3(-span/2, -bossNode.transform.position.y, 0);

Thanks, Alan.