Staredit Network > Starcraft I Database > File: Relative Distance

Sunken Treasure
(Reload)
Relative Distance
Download
Filename: RelativeDistance.scx
Filesize: 33.45KB

Thumbnail

Rating
Not enough votes.
Log in to rate

File Information
General
Uploaded on:Jan 3 2019, 3:37 am
Uploaded by:goobie
Author:Not Given.
Downloads:310

Map-Data
Tileset:Badlands
Dimension:64x64

Forces
Force 1
Human (Terran)
()
()
()
()
()
()
Force 2
Computer (Zerg)
Force 3
Force 4

Map-Statistics
Units:9
Triggers:121
Locations:31
Strings:38
File Description
This map computes the relative x and y distance between two units and displays the distance in minerals and gas. This implementation is accurate to 8 pixels, rounded down, and up to a distance of 224 pixels. It does not use a full grid system, but rather shifting locations to isolate information about the x and y coordinates individually. This has allowed me to use only 30 locations.

There are issues if the units are too close to the edge of the map.

It does not currently differentiate between left/right or above/below. I know how to differentiate left and right, but not above and below. I don't need relative directions for my current project, but if anyone's interested it is a problem I'd like to implement direction detection some point.

All Images

Comments
No comments yet.
[11:05 pm]
ihjel -- At least two; MindArchon released one aswell https://staredit.net/topic/18926/
[10:52 pm]
Vrael -- Whoa cool a new map editor in the year *checks notes* 2026?
[02:16 pm]
ihjel -- A whole army of vacuum cleaners have signed up for the wiki
[11:00 am]
UndeadStar -- I want to commend bots for finally finding the Introductions subforum. But those huge blocks of text sometimes interrupted by a link? That's a regression compared to the other bots.
[2026-11-05. : 6:38 pm]
*l)ark_ssj9kevin ********
[2026-11-05. : 3:19 am]
*Symmetry chortles*
[2026-11-05. : 3:19 am]
Symmetry -- lmao butch doesn't know
[2026-11-05. : 12:28 am]
Butch -- *shits fat diapey and runs around*
[2026-11-05. : 12:11 am]
*lil-Inferno farts*
[2026-11-04. : 3:41 am]
*Symmetry dances*
Please log in to shout.


Members Online: ihjel, Vrael