View Single Post
  #2  
Old 12-30-2010, 07:47 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
It's possible but would almost certainly require a custom movement system. You could do it with setshape2 and NPCs but I wouldn't recommend it.

edit to expand:
Using custom movement, the best way I can think of to do it is to make a list of tiles of each type and use a custom tile type function.

PHP Code:
//#CLIENTSIDE
enum TILE {
  
FLOOR,
  
WALL,
  
CHAIR,
  
BED
}

function 
getTileType(dxdy) {
  
temp.tile player.level.tiles[dxdy];
  
  switch (
tile) {
    case 
100:
    case 
101:
    case 
102:
    case 
103// etc
      
return TYPE.CHAIR
    
break; // not really needed because of the return but I think it improves readability
    
    
case 200:
    case 
201:
      return 
TYPE.BED;
    break;
    
    case 
300:
    case 
301:
    case 
400:
    case 
401:
      return 
TYPE.WALL;
    break;
    
    
// any which haven't been defined above
    
default:
      return 
TYPE.FLOOR;
    break;
  }

You could alternatively use if-statements or arrays instead of a switch. Dusty also did something with color mapping.
__________________

Last edited by cbk1994; 12-30-2010 at 07:57 AM.. Reason: elaborating on how to do it with custom movement
Reply With Quote