Thread: shorter way?
View Single Post
  #4  
Old 08-14-2007, 04:31 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
for(temp.04++) {
  if (
player.dir == i) {
    
temp.tx int(this.+ (i==1?-1:(i==3?1:0));
    
temp.ty int(this.+ (i==0?-1:(i==2?1:0));
    if (
tiletype(txty) != 22) {
      goto(
txty);
    }
  }

PHP Code:
temp.= {
  { 
0,-1},
  {-
10},
  { 
01},
  { 
10}
};
temp.player.dir;
if (
tiletype(int(this.a[b][0], this.a[b][1])) != 22) {
  goto(
int(this.a[b][0], this.a[b][1]);

dunno if they work (no vecx/y used ;o)
__________________
Reply With Quote