x and y
Posted: Wed Jul 04, 2007 5:25 pm
Question for Makslane really, unless anyone else happens to know the answer (Fuzzy? Anyone?)
Is the value returned when referencing an actors x and y unsigned? I ask because I've got this problem that appears to be based on the players position on the grid.
I'm trying to create a new actor at the players x and y position, which works fine in parts of the grid where the x and y are positive, but when they are negative they don’t seem to appear. If the x and y values were unsigned that might explain it, the new actors are being created but not at the right coordinates, when they should appear at say -200, -200 they actually appear at 200, 200.
What might be the best solution to this, without me moving the entire map so that it is located in only positive areas of the grid (which will render 3/4 of the available grid useless ).
PS. I guess the problem also applies to other default position/grid related actor variables.
Is the value returned when referencing an actors x and y unsigned? I ask because I've got this problem that appears to be based on the players position on the grid.
I'm trying to create a new actor at the players x and y position, which works fine in parts of the grid where the x and y are positive, but when they are negative they don’t seem to appear. If the x and y values were unsigned that might explain it, the new actors are being created but not at the right coordinates, when they should appear at say -200, -200 they actually appear at 200, 200.
What might be the best solution to this, without me moving the entire map so that it is located in only positive areas of the grid (which will render 3/4 of the available grid useless ).
PS. I guess the problem also applies to other default position/grid related actor variables.