View Single Post
  #1  
Old 08-28-2011, 06:38 PM
Maelstrom002 Maelstrom002 is offline
Registered User
Join Date: Aug 2011
Location: Canada, MB
Posts: 5
Maelstrom002 is on a distinguished road
Online showpoly() Creator

Hi everyone,

I got tired of grabbing x&y information off of editor to create some of the
more complex showpolys() I was making, and decided to toy around
and make something that could do it for me.

The script displays a single tile sized poly where your mouse is, and upon left click will place a poly representing the node you've created. As you continue placing nodes the showpoly that it will eventually print out will be displayed as you make it so you can see what the final product will result in.
When placing nodes it will also determine if the form is of an corner and adjust to the proper x&y coords, which is why I used two sets of values & arrays.

Once you right click it will end your ability to place nodes, and print out the array in the F2 Logs.

( The one thing I was unable to fix is that to finish off the poly nicely,
you'll need to place a node on the same spot as your first node, otherwise
it wont correct the corner because not enough nodes have been placed
for it to determine its an inside corner, however depending on the shape of the poly, you may not even run into this issue.

I also suggest starting from the top-left corner of your poly shape. )

Any feedback is appreciated!
Attached Thumbnails
Click image for larger version

Name:	polycreator_1.png
Views:	339
Size:	108.3 KB
ID:	53582   Click image for larger version

Name:	polycreator_2.png
Views:	280
Size:	62.5 KB
ID:	53583  
Attached Files
File Type: txt PolyCreator.txt (8.2 KB, 260 views)
Reply With Quote