Suggestion: TV plugin

Started by Tarlash, Thu 13/05/2004 15:24:00

Previous topic - Next topic

Tarlash

I thought about plugin making "porridge" effect (you know, those white dots, when you tune TV channel badly).

So, anyone could try doing this?
My hands are shaking...
I cannot concetrate...
I need AGS!!!

TerranRich

You mean white-noise static? That could easily be done using objects and animation and a little knowledge about paint programs.

Perhaps a plugin with more features than just a TV static feature. Perhaps other screen-wide overlay effects like blurred graphics, inverse colors, greyscale, etc. Like filters that you can put over the room's graphics (one could be in the style of a flickering greenscale security camera) that are temporary.
Status: Trying to come up with some ideas...

Dorcan

#2
I juste tried something which didn't turn too bad, but this function may run slowly on some computer, depending on the TvZone size.

Quote
// room script file

int TvUpdate = 0;
int TvCycle = 2;

function TvZone(int x, int y, int x2, int y2, string text){
Ã,  int k = y;
Ã,  int i, rand;
Ã, 
Ã,  if (TvUpdate < TvCycle)
Ã,  Ã,  TvUpdate ++; else {
Ã,  Ã,  TvUpdate = 0;
Ã,  Ã, 
Ã,  Ã,  while (k <= y2) {
Ã,  Ã,  Ã,  i = x;
Ã,  Ã, 
Ã,  Ã,  Ã,  while (i <= x2) {
Ã,  Ã,  Ã,  Ã,  rand = 24 + Random(7);
Ã,  Ã,  Ã,  Ã,  RawSetColor(rand);
Ã,  Ã,  Ã,  Ã,  RawDrawLine (i, k, i, k);
Ã,  Ã,  Ã,  Ã,  i ++;
Ã,  Ã,  Ã,  }
Ã, 
Ã,  Ã,  Ã,  k ++;
Ã,  Ã,  }
Ã,  }

Ã,  rand = Random(5)
Ã,  if (rand >= 3) {
Ã,  Ã,  SetNormalFont(0);
Ã,  Ã,  RawSetColor(2);RawPrint(x2-7*(StrLen(text)), y+4, text);
Ã,  Ã,  RawSetColor(10);RawPrint(x2-7*(StrLen(text))-1, y+3, text);
Ã,  }
}

In the room Repeatedly execute :
Quote
function room_a() {
Ã,  // script for room: Repeatedly execute
Ã, 
Ã,  TvZone(100, 50, 220, 120, "NO INPUT");

}

SMF spam blocked by CleanTalk