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
|
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 |
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. |