[SOLVED] What's An Inverted Location?
Topic Locked
Topic Locked|
Nothing yet! Almost done. Very powerful, very strong.
|
Units are only considered to be inside an inverted location, if the unit touch all 4 edges of the location at the same time.
You can make a movement detection and detect that a unit moved by at least 1 pixel. It finds usage in some activation systems like activating a triggered spell in a RPG. The detection is faster than a 1x1 pixel location because in a regular location, the unit is considered to be inside the location, if it touches the plane of that location. With the inverted location it only has to move by 1 pixel to invalidate the bring and make it therefore detectable in triggers with the cost of only 1 location. ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
Yeah, it would be nice if inverted locations worked the way they seem to imply: eg a bring trigger would execute when you had units anywhere except 'inside' the location, acting as a 'hole'. Unfortunately they do not.
![]() ![]() ![]() ![]() ![]() ![]() O)FaRTy1billion -- "Lanthanide -- surely you have photos of yourself dressed up as a girl, az?" I don't have pictures of me dressed up as a girl.
O)FaRTy1billion -- One time I was jumping on a trampoline (at that very friend's house xD) with water balloons in my shirt held up by a belt. Azrael.Wrath -- ... |