00:00
00:00
Newgrounds Background Image Theme

Mekatov just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

AS: Photo Negitive

6,879 Views | 39 Replies
New Topic Respond to this Topic

Response to AS: Photo Negitive 2005-10-24 08:55:43


At 8/18/05 07:49 AM, Glaiel_Gamer wrote: tutorial

Ah! I think I've got something to add here! (Made in BBS/Flash 7) This worked last time I tried it but I haven't had access to that file while typing this so...

If you put this in a movie clip (it'll probably adapt to other stuff but I haven't tried it)

onClipEvent(load){
var thisColour:Color = new Color(this);
var colourDeafultTransform:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
//sets up the values for the default/normal colours
var colourInverseTransform:Object= {ra:-100, rb:255, ga:-100, gb:255, ba:-100, bb:255};
//sets up the values for the inverse colours
thisColour.setTransform(colourDefaultTrans
form);
//sets the transform values for our movie clip to those for default colours
}

onClipEvent(enterFrame)
if(Key.isDown(90)){
thisColour.setTransform(colourInverseTrans
form)}
//if the 'Z' key is down the transform values are set to the inverse/photo negative values. if not...
else{
thisColour.setTransform(colourDefaultTrans
form)}
//the values are set to the default
}

You could also have other transformations set to other events like:

onClipEvent(load){
var thisColour:Color = new Color(this);
var colourDeafultTransform:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
var colourFireTransform:Object = {ra:100, rb:0, ga:20, gb:0, ba:0, bb:0};
//a reddish, slightly orange tint
var colourWaterTransform:Object = {ra:0, rb:0, ga:70, gb:0, ba:100, bb:0};
//a turquoise tint
thisColour.setTransform(colourDefaultTrans
form);
}

onClipEvent(enterFrame)
if(this.hitTest(_root.lava)){
thisColour.setTransform(colourFireTransfor
m)}
else if(this.hitTest(_root.water)){
thisColour.setTransform(colourWaterTransfo
rm}
else{
thisColour.setTransform(colourDefaultTrans
form)}
}

!!UNTESTED!!


BBS Signature

Response to AS: Photo Negitive 2006-01-19 21:15:05


Ahhh... Yes... Invertion is useful indeed... Chaos.... CONTROL!!! *TEH TIME STOP!!!*

Now I shall be able to insert the coolest looking (not most useful...) Chaos power of them ALL into my flashes... Your greatness in AC is highly appeciated, especially since I still have my Flash MX 2004.

Response to AS: Photo Negitive 2006-02-25 15:33:41


Try adding it to a video object that is so cool.

,Ali.


BBS Signature

Response to AS: Photo Negitive 2006-02-25 15:45:38


Sometimes blending the full image is not enough.
Here's pixel-level palette effects , hot fresh from my Flash oven. :)

I wanted to do this for a while, was reading the docs for a while, until it turned out I could just use the bmp.threshold() method... (search "8-bit palette effects" for a thread on this for details). It's very powerful, but it requires knowing the palette information. So it's good for GIFs, but total nightmare for JPGS.

Response to AS: Photo Negitive 2006-08-16 12:08:57


lol i just realized i spelt negative wrong in the title.

No wonder it was hard to find again

Response to AS: Photo Negitive 2006-08-16 12:19:17


At 8/16/06 12:08 PM, Glaiel_Gamer wrote: lol i just realized i spelt negative wrong in the title.

No wonder it was hard to find again

You spelling noob, Glaiel :P


BBS Signature

Response to AS: Photo Negitive 2006-08-16 12:34:15


At 8/16/06 12:19 PM, _Paranoia_ wrote:
At 8/16/06 12:08 PM, Glaiel_Gamer wrote: lol i just realized i spelt negative wrong in the title.

No wonder it was hard to find again
You spelling noob, Glaiel :P

hey! I am NOT a spelling noob! I just sux at spelling.

Response to AS: Photo Negitive 2007-11-09 17:37:26


wicked work!

Response to AS: Photo Negitive 2008-04-25 02:18:37


How would you make it so it looks like Heat Vision? (Thermal or FLEER)

Response to AS: Photo Negitive 2008-04-25 03:33:47


At 4/25/08 02:18 AM, zenyara wrote: How would you make it so it looks like Heat Vision? (Thermal or FLEER)

...

You'd need to give everything an alternate graphic if you wanted good heat vision.

You could give objects a 'heat' variable and increase their red channels based on that, and reduce the blue and green channels on the whole screen.


BBS Signature