graphics.c problem

  • ubuntupokemoninc
    24th Apr 2011 Member 0 Permalink
    i'm making an element that will look like smoke, and i just can't get it to work, i'm using the data from smoke in graphics.c
  • shroom207
    24th Apr 2011 Member 0 Permalink
    @ubuntupokemoninc (View Post)
    I know i dont belong here but what are you making?
  • ubuntupokemoninc
    24th Apr 2011 Member 0 Permalink
    bromine gas
  • dnerd
    24th Apr 2011 Member 0 Permalink
    @ubuntupokemoninc (View Post)
    i havent worked in graphics.c much, but i would be sure that you have everything filled in correctly, so its effecting the element you're making, instead of anything else.
  • shroom207
    24th Apr 2011 Member 0 Permalink
    @ubuntupokemoninc (View Post)
    Corrosive and toxic mmm sounds interesting.
  • ubuntupokemoninc
    24th Apr 2011 Member 0 Permalink
    I've made many attempts at br before and i've given up, but know I WANT TO BUILD IT
  • dnerd
    24th Apr 2011 Member 0 Permalink
    @shroom207 (View Post)
    technically, you're spamming, as that is slightly off topic, and does not help get this problem resolved.
  • shroom207
    24th Apr 2011 Member 0 Permalink
    @dnerd (View Post)
    Not really i looked at wikipedia it said bromine gas is toxic and corrosive it sounds like a interesting element he is trying 2 make.
  • dnerd
    24th Apr 2011 Member 0 Permalink
    @shroom207 (View Post)
    -replied in conversations-
  • ubuntupokemoninc
    24th Apr 2011 Member 0 Permalink
    else if (t==PT_BRG)
    {
    if (cmode == CM_FIRE||cmode==CM_BLOB || cmode==CM_FANCY)
    {
    x = nx/CELL;
    y = ny/CELL;
    cg = 10;
    cb = 10;
    cr = 10;
    cg += fire_g[y][x];
    if (cg > 50) cg = 50;
    fire_g[y][x] = cg;
    cb += fire_b[y][x];
    if (cb > 50) cb = 50;
    fire_b[y][x] = cb;
    cr += fire_r[y][x];
    if (cr > 50) cr = 50;
    fire_r[y][x] = cr;
    }
    else
    {
    for (x=-3; x<4; x++)<br /> {
    for (y=-3; y<4; y++)<br /> {
    if (abs(x)+abs(y) <2 && !(abs(x)==2||abs(y)==2))<br /> blendpixel(vid,x+nx,y+ny,100,100,100,30);
    if (abs(x)+abs(y) <=3 && abs(x)+abs(y))<br /> blendpixel(vid,x+nx,y+ny,100,100,100,10);
    if (abs(x)+abs(y) == 2)
    blendpixel(vid,x+nx,y+ny,100,100,100,20);
    }
    }
    }
    }

    here is what makes it look cloud like, but nothing happens,the spaces got alittle messed up when i pasted it on the forum