View Single Post
  #1  
Old 05-15-2012, 07:07 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Feedback: Single player minimap

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)
Attached Thumbnails
Click image for larger version

Name:	minimapimage.PNG
Views:	219
Size:	38.1 KB
ID:	54635  
Reply With Quote