I've been playing around with a lot of areas within GScript that I've never properly looked at before such as SQLite storage methods and more advanced uses for maths. This task was more to do with using maths for more than just placing GUI controls across the screen, and took some thinking on my part.
I've managed to script a simple minimap script that shows your player's position on the map. It works by taking how many levels your GMAP is made up of and finding how many tiles are in those levels added up. It then positions an image on the map image according to the player's location.
It works, I know that, but I'm just curious as to if there's a simpler way to go about doing this. I looked briefly at Dusty's minimap script after finishing this, and his approach is somewhat different to mine.
Any feedback, criticism and advice is welcome as long as it's constructive. Thank you.
(I had to use pastebin.graalcenter.org since incapsula wouldn't let me post the code)
Minimap code (pastebin.graalcenter.org)