random light effect.
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
here is a random light effect,
just put this on any event or on the create actor event of your canvas actor.
you can also play around with the stuff to make it different colours.
the one I posted was for a yellow light.
WHITE:
RED:
GREEN:
BLUE:
PURPLE:
ect.![Very Happy :D](http://game-editor.com/forum/images/smilies/icon_biggrin.gif)
just put this on any event or on the create actor event of your canvas actor.
![Very Happy :D](http://game-editor.com/forum/images/smilies/icon_biggrin.gif)
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, possize, 0, 0, Size);
putpixel(150, 150);
}
you can also play around with the stuff to make it different colours.
the one I posted was for a yellow light.
WHITE:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, possize, possize, 0, Size);
putpixel(150, 150);
}
RED:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, 0, 0, 0, Size);
putpixel(150, 150);
}
GREEN:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(, possize, 0, 0, Size);
putpixel(150, 150);
}
BLUE:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(0, 0, possize, 0, Size);
putpixel(150, 150);
}
PURPLE:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, 0, possize, 0, Size);
putpixel(150, 150);
}
ect.
![Very Happy :D](http://game-editor.com/forum/images/smilies/icon_biggrin.gif)