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.
[10:18 pm]
Vrael -- who says I'm not a total madman?
[02:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Please log in to shout.


Members Online: Vrael, Oh_Man