|
Remember the game! P.s.: Feldspar.
|
Yeah, I think this was mentioned before.
It just has to be the size of the unit. ![]() ![]() ![]() ![]() ![]() ![]() Badlands 128 Minimap Colors I like
Platform 95 Minimap Colors Install 85 Minimap Colors What is this table, you ask? Ashworld 92 Minimap Colors I made images that list all the Jungle 105 Minimap Colors tiles' minimap colors arranged Desert 109 Minimap Colors by tileset groups (i.e. tileset Ice 94 Minimap Colors index.) Twilight 97 Minimap Colors I could make my own SCPM... |
|
The real one.
|
Lol, I'm surprised you figured out the unit dimensions yourself. There are programs to help figure this out.
And one other thing, it doesn't work well with some units as the center location function doesn't center on the exact center of all of them. (So it depends on which direction they are facing where their center is.) ![]() ![]() ![]() ![]() ![]() ![]() |
|
Mappr
|
inverted location:
1. create a location 2. edit the location: 2A: swap the left/upper coordinates (X) with the right/lower coordinates (Y) Codenormal location (X)----- | | -----(Y) inverted location (Y)----- | | -----(X) Inverted locations will never be blocked by the end of the map while centering on a unit (it is always perfect on the unit like a 1x1 pixel location). You can only detect units inside an inverted location when they hit all (or maybe only a few) edges of the inverted location with the "bring"-condition. ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
Huh, quite interesting! Thanks guys!
EDIT: I wonder if you can do it like this: Code------X | | Y------ Or like this: Code------Y | | X------ In the first case units should be detected when touching just left and right borders at once and in the latter case when touching top and bottom borders at once... This post was edited 1 times, last edit by Wormer: Apr 20 2008, 3:53 pm.
![]() ![]() ![]() ![]() ![]() ![]() |
|
Remember the game! P.s.: Feldspar.
|
If X2 > X1, the unit must be between or touching the left and right edges.
If Y2 > Y1, the unit must be between or touching top and bottom edges. If X1 > X2, the unit must be touching both the left and right edges. If Y1 > Y2, the unit must be touching both the top and bottom edges. X1 and X2 are independant of Y1 and Y2; you can do whatever with either and the other wont be affected. (To answer your 'I wonder', yes. It should work.) ![]() ![]() ![]() ![]() ![]() ![]() Badlands 128 Minimap Colors I like
Platform 95 Minimap Colors Install 85 Minimap Colors What is this table, you ask? Ashworld 92 Minimap Colors I made images that list all the Jungle 105 Minimap Colors tiles' minimap colors arranged Desert 109 Minimap Colors by tileset groups (i.e. tileset Ice 94 Minimap Colors index.) Twilight 97 Minimap Colors I could make my own SCPM... |