Im wondering if its possible to make a rotate map proc
That rotates the map for the user only?
ID:149647
Mar 19 2002, 9:47 am
|
|
Mar 19 2002, 9:49 am
|
|
Check out client.dir
|
In response to Nadrew
|
|
Thanks only thing i have to do now is make sure it doesnt remap the keys
|
In response to DoOmBringer
|
|
This seems to be hard I put a check in the North() and South() and found out that the left and right keys become north south keys when you use src.dir = WEST or src.dir = EAST
So is there away to go around this and make it so it Up still moves you up even though the map is rotated |
In response to DoOmBringer
|
|
I'd say just make a switch that checks client.dir whenever you attempt to use the arrow keys.
client.North() switch(client.dir) if(NORTH) return DoNorth() if(EAST) return DoWest() if(SOUTH) return DoSouth() if(WEST) return DoEast() Then you can just put the function you wanted for client.North in the DoNorth() proc. |
In response to Foomer
|
|
Hmmm This Doesnt work quite right
my code is this client East() src.dir = EAST West() src.dir = WEST Also I need it so the up key always goes north and the south key always heads south |