Jump to content

[Help] Creating Polygons?


Recommended Posts

Posted

Hey guys, I'm trying to define an area that isn't a rectangle, for a visual representation, I have this as what I want to do. (Red lines define the area edge.)
94c57e6eeae14ea891d5d10d5bda9465.png

The way I'm doing this so far, is by creating two different, rectangular areas, which I do not like, as it does mean making a check if something is within either of the areas + it does look a bit messy. (Red is area 1, Blue is area 2).
c2caf55b56424523940e200a7acae1ae.png

TL;DR: How do I combine two (or more) areas to create one area.

Posted (edited)

/* Alright, second challenge, I'm checking if the closest ground item is within an area, using an array of areas (I do believe that is what that is, anyway), this doesn't work. Any work arounds? */

EDIT: got it working, thanks for the help boys :)

Edited by viri
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...