Page 1 of 1

[Fixed for V0.38] Items created in center can't be picked up

Posted: Mon May 15, 2006 1:13 am
by Sophia
When an object that is in the center (or centre, if you prefer) of a tile is converted, any resultant object will also be there, including a pickableuppable item.

Thus, if I'm trying to make a monster into an object, for example, it will appear in the middle of the tile, and I can't pick it up.

Posted: Mon May 15, 2006 1:23 am
by George Gilbert
Fixed for V0.38

Posted: Mon May 15, 2006 10:20 am
by Lunever
How exactly has this been fixed?

Posted: Mon May 15, 2006 10:34 am
by George Gilbert
Something like:

Code: Select all

if (tile is a wall)
{
  if (current tile position == NORTH)
    current tile position = NORTHWEST
  else if (current tile position == EAST)
    current tile position = NORTHEAST
  else if (current tile position == SOUTH)
    current tile position = SOUTHEAST
  else if (current tile position == WEST)
    current tile position = SOUTHWEST
  else if (current tile position == CENTRE)
    current tile position = Random of one of the above 4.
}
else
{
  if (current tile position == NORTHWEST)
    current tile position = NORTH
  else if (current tile position == NORTHEAST)
    current tile position = EAST
  else if (current tile position == SOUTHEAST)
    current tile position = SOUTH
  else if (current tile position == SOUTHWEST)
    current tile position = WEST
  else if (current tile position == CENTRE)
    current tile position = Random of one of the above 4.
}

Posted: Mon May 15, 2006 10:39 am
by Lunever
Ah, so an item on the center will just be transferred to one of the 4 standard tile positions, but it is not possible for an item to actually lie on a center position. Right, thanks!