Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Grid and Coordinate Systems, Direction Detection
Grid and Coordinate Systems, Direction Detection
This topic is locked. You can no longer write replies here.
Jul 27 2009, 5:36 pm
By: Ashamed  

Jul 27 2009, 5:36 pm Ashamed Post #1

Hear me Raor!!

So, i started to make a map again. Its a RPG and what im trying to do is make a directions detection system, So far i have it pretty good, i have 2 locations thats extend from 1 side of the map to the other, one is vertical and the other is horzontal, Then there are 3 differnt kinds of units on the side to detect the movement. If anyone knows a simple, type grid system that would be helpful.



None.

Jul 27 2009, 6:05 pm Kaias Post #2



Grid Systems wiki



None.

Jul 27 2009, 6:59 pm JaFF Post #3



OK, I moved your topic to UMS Assistance, since you're not displaying a new idea, nor are you asking for a new idea to be applied to your map.

What you have set up now is a coodrinate system, just like the Unit Coordinate Detection article suggests. If you want to detect what direction the unit has moved, you have several options.

If you want to have only the 8 basic directions (a more advanced modification of this method can give you 16 directions), you can set up a Mobile Grid around your unit (see Mobile Grids in the Grid Systems article Kaias posted) and just check which of the 8 sides the unit moved to. This method does not work if you have air units near your 'hero'.

Working from what you already have (a coordiante system), you can simply compare the new unit coordinates with the old ones via Binary Countoffs and get the direction from there. This requires a little trick to be added. If you're interested in this method, I'll describe this trick.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
[2026-4-12. : 11:55 pm]
Zoan -- not if u wer there
Please log in to shout.


Members Online: l)ark_ssj9kevin, seemlyfighter77, Zoan