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:264

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.
[02:00 am]
l)ark_ssj9kevin -- hi jamal
[12:18 am]
Heinermann -- memes
[10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[04:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: Ojan, uzukuduhel