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

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.
[03:10 pm]
lil-Inferno -- :wob:
[10:46 am]
UndeadStar -- :wob:
[2026-6-13. : 12:16 am]
Symmetry -- :wob:
[2026-6-12. : 4:16 pm]
IskatuMesk -- :wob:
[2026-6-12. : 4:47 am]
lil-Inferno -- rive
[2026-6-12. : 3:48 am]
RIVE -- inferno
[2026-6-12. : 3:18 am]
lil-Inferno -- moose
[2026-6-11. : 8:35 pm]
Moose -- lil-Inferno
lil-Inferno shouted: sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
mad
[2026-6-11. : 3:11 pm]
lil-Inferno -- h
[2026-6-09. : 5:01 pm]
NudeRaider -- Vrael
Vrael shouted: because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
given Moose's post I don't think he had to guess. ^^
Please log in to shout.


Members Online: Zoan, Roy