Automapping

chrisw70
Does anyone know if it's possible to put an image beneath Quest's user-generated automap, so that the map appears superimposed over an image instead of just a blank background? And if so, the correct code snippet you would use to do it? Thanks for any help with this!

jaynabonne
The basic function to use is this:

Grid_DrawImage("background", GetFileURL("bg.jpg"), -25, -25, 50, 50)

The image needs to be in the same folder as your game. The general parameters are:

Grid_DrawImage(id, url, x, y, width, height)


The starting location of the grid is 0,0. I don't know how the image scales. With the values I had above and a fairly large image, it expanded well beyond the limits of the view (which is good since the grid/map scrolls). I'd say just play around with it.

I don't know why this function isn't documented... :)

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums