HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

is point within region ??

07-10-2007, 04:41 PM#1
fps-doug
Hi, im trying to make a coordinate kind of arrow key movement system. Basically if you hit left arrow, your unit is moved to the position of your unit offset by (-128, 0). Thats easy enough to do. Im trying to make an 'out of bounds' area though so the game doesnt try to move to that spot.

Im using world editor unlimited and I created a square out of bounds line by creating a region made up of 4 rects. Now what im stumped on is in the trigger that deals with the arrow key movement, how do I make a condition that says "the target point of issued order must not be in 'region"? I see ways to do it concerning rects, but I constructed a region of (many) rects and was hoping there was a simpler way of figuring out whether or not a point was in a region..
07-10-2007, 04:44 PM#2
maximilianx
easy solution is to change the terrain tile in the "out of bounds" area to something you wont use anywhere else..then you can use the terrain type condition.
07-10-2007, 04:53 PM#3
fps-doug
WOW thanks a bunch max!! that was really simple and made me look very dumb