Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Egg Ball, NEW EUD MAP

Pages: < 1 « 2 3 4
Creator: Mafia.Mayor
Time: May 12 2008, 12:02 am

Post #61     Impersonation May 30 2008, 7:11 pm

[Avatar]
 offline contact
So do they get centered on each of the Y locations and the Y' locations or just Y14 and Y'14?
Top

Post #62     Mafia.Mayor May 30 2008, 7:20 pm

[Avatar]
The Mayor
 offline contact
Quote from Impersonation
So do they get centered on each of the Y locations and the Y' locations or just Y14 and Y'14?
It depends on what I'm doing.

When I'm trying to determine a unit's location I find out what row and column it's in. To find out the row, I center the big Y Location on each of the smaller Y locations checking each time to see if the unit is there. To find out the column, I just center each X location one by one on the Y14 location. The row, y14, is just an arbitrary row that I center the x locations on, it's just to get the X locations on the left or right edge. Finally, I center the long X location the small x locations to be able to check if a unit is anywhere in the entire row.

When I'm trying to place something at a specific location I first look at what the Y coordinate is as well as what the X coordinate is. Based on the Y coordinate I center location "loc" on one of the smaller Y locations. Based on the X coordinate I know whether to center it on the small left Y or the small right Y, because there are two small Y locations, but they're on opposite sides of the map.

Centering loc on one of those Y locations isolates the position of the Y coordinate I'm trying to place a unit at. Then I take whatever X location is necessary based on the X coordinate, and I center it on "loc". That gives me the proper x coordinate along the row that loc is in.

Finally, I just center a small location (I think it's loc reused) on that X location, which just represents one grid square and it gets centered in the middle of the X location.
My name is Inigo Montoya. You killed my father. Prepare to die.
Top

Post #63     Brontobyte Jul 20 2008, 10:23 pm

[Avatar]
 offline contact
[/delete] Wrong topic... :lol:
╔═══╦═══╦═══╦══╦═╦═══╦═══╦═══╦═╦═╦═══╦═══╗
╠═══╣....═╣............╠╗..╔╣....╠═══╬╗..╔╩╗..╔╬═══╣
╚═══╩═╩═╩═══╩═╩══╩╩═╩╩═══╩═══╩╩═╩═╩═╩╩═══╝
Top
0 members in this topic: None
+ 0 guest(s)


[09:51 am]
MillenniumArmy -- no, MA is the definition of rox
[09:01 am]
BluEditor -- so definition of sux=MA?
[08:24 am]
Mafia.KrayZee -- MillenniumArmy sux
[08:01 am]
BluEditor -- ok
[07:45 am]
poiuy_qwert -- lol
[07:37 am]
madroc -- 007 funny clever
[07:37 am]
madroc -- Lol! nice sig dark marine
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions