Thread: map backgrounds
View Single Post
  #13  
Old 12-02-2002, 02:17 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by Com013

Normally you know which maps there are on your world.
So you could just do
NPC Code:

if (onmapx(level13.graal) >= 0) showimg 200,map.png,...
else if (onmapx(tyhmmoon_a-1.graal) >= 0) showimg 200,moonmap.png,...


(onmapx returns on which x-position a level is on the map. It is -1 when the level isn't on the current map).
but that way you cant do something like

changeimgzoom and change the zoom of the map, and have the heads\pms change with it
Reply With Quote