00:00
00:00
Newgrounds Background Image Theme

Arnahan 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,452 Views | 39 Replies
New Topic Respond to this Topic

AS: Photo Negitive 2005-08-18 07:49:34


http://img363.images..p?image=tinty1gn.swf

Look at that.

So here's a very simple AS for making your movie a photo negative (but sadly doesn't work with the background color, so I suggest adding in your own

The Codes:

Code 1: Put on _root timeline whereever you want the movie to turn photo-negative

my_color = new Color(_root);
myColorTransform = {ra:-100, rb:255, ga:-100, gb:255, ba:-100, bb:255};
my_color.setTransform(myColorTransform);

Code 2: Put on _root timeline whereever you want the movie to turn back to normal

my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);

This is basically just an advanced tint, done with actionscript. These specific values tend to make things photo-negative.

AS: Main

~GG

Response to AS: Photo Negitive 2005-08-18 07:53:10


also, where it says _root you can change that so it would be for a specific MC

Response to AS: Photo Negitive 2005-08-18 07:57:34


okay im a complete flash n00by.
and i get the jist of what you are saying,
which means it is easy to understand.
good job ^^

Response to AS: Photo Negitive 2005-08-18 08:00:55


wow thats awesome, I was thinking of doing something like that in a game of mine. and duh its not working for the background because when you put nothing back there then flash has the color coded always a white. I think I may not have explained that right. try putting a white movieclip to cover the background. and hopefully it'll work (it's worth a try).

Response to AS: Photo Negitive 2005-08-18 08:08:25


At 8/18/05 08:00 AM, MusicianMX wrote: its not working for the background because when you put nothing back there then flash has the color coded always a white. I think I may not have explained that right. try putting a white movieclip to cover the background. and hopefully it'll work (it's worth a try).

It would work, and that's what meant.

Response to AS: Photo Negitive 2005-08-18 08:11:05


At 8/18/05 08:08 AM, Glaiel_Gamer wrote: It would work, and that's what meant.

Oh I see, I didn't notice that, im going to copy and past that middle line to a word doc, but do you have a linky explaining the change color function. or change color format... I forgot it already. :(

Response to AS: Photo Negitive 2005-08-18 08:48:21


At 8/18/05 08:11 AM, MusicianMX wrote:
At 8/18/05 08:08 AM, Glaiel_Gamer wrote: It would work, and that's what meant.
Oh I see, I didn't notice that, im going to copy and past that middle line to a word doc, but do you have a linky explaining the change color function. or change color format... I forgot it already. :(

it's 3 lines of code, and all it is is tinting

Response to AS: Photo Negitive 2005-08-18 09:23:50


not bad at all GG, I like it

Response to AS: Photo Negitive 2005-08-18 09:41:06


At 8/18/05 09:23 AM, Inglor wrote: not bad at all GG, I like it

thanks.

I tried it out with P:M, and it looks cool so I'll put it as an option for arcade mode.

Response to AS: Photo Negitive 2005-08-18 09:47:25


you should make a bomb do that flashingly

Response to AS: Photo Negitive 2005-08-18 09:50:14


At 8/18/05 09:47 AM, Inglor wrote: you should make a bomb do that flashingly

lol, i never put in bombs....... maby I will for arcade mode. Or maby I'll just keep it like it is.

Response to AS: Photo Negitive 2005-08-18 09:51:15


At 8/18/05 09:50 AM, Glaiel_Gamer wrote:
At 8/18/05 09:47 AM, Inglor wrote: you should make a bomb do that flashingly
lol, i never put in bombs....... maby I will for arcade mode. Or maby I'll just keep it like it is.

I GOT IT! I'll use it as a special effect of a weapon of the next boss!

Response to AS: Photo Negitive 2005-08-18 12:50:20


LOLZ! OR YOU COULD TAKE A PICTURE FILE LIKE THAT BIKE AND GO INTO MSPAIN AND TO INVERT COLORS!!! OMFG!!!

lol just kidding, nice job.


No more animated sigs. :(

BBS Signature

Response to AS: Photo Negitive 2005-08-18 13:14:13


an even easier way, is to save your picture, put it into Paint, and go: Modify, image, invert colors, then, import it into flash.

Response to AS: Photo Negitive 2005-08-18 13:32:04


At 8/18/05 01:16 PM, -KhAo- wrote:
At 8/18/05 01:14 PM, Crailex wrote: an even easier way, is to save your picture, put it into Paint, and go: Modify, image, invert colors, then, import it into flash.
its not easier, and it takes more space on the .swf after....

PWNED

oh, sorry, i didn't know...

Response to AS: Photo Negitive 2005-08-19 09:29:47


At 8/18/05 01:14 PM, Crailex wrote: an even easier way, is to save your picture, put it into Paint, and go: Modify, image, invert colors, then, import it into flash.

ya, but this method can be used dynamically, and inverts everything and is much easier to use

Response to AS: Photo Negitive 2005-08-22 22:30:15


That's really awesome. I'm definately using it for the spy game, it fits perfectly. Thanks a lot!

Response to AS: Photo Negitive 2005-08-22 22:34:46


You can modify this code to turn a game green and black, or any other cool color scheme or whatnot. It has endless possibilities. Fiddle around with the values and post your examples

Response to AS: Photo Negitive 2005-08-22 22:44:26


the thing is you can do everywhere in between too, so actionscript wise this is tweenable!
which im currently trying to do

Response to AS: Photo Negitive 2005-08-22 22:46:35


nice job.. i think i may use this for my part in the altered reality collab. I'm doing it full black and white shades so it would be cool to have all the colors flash invert at different times. If I just want one frame on the timeline to have inverted colors, I would just put the AS in that one frame and it would automatically turn it off after the frame right? Also, does it only invert movieclips, or everything on the stage?

Response to AS: Photo Negitive 2005-08-22 22:48:34


*and then i would add the second code to the frame after that frame i added the first code to?

Response to AS: Photo Negitive 2005-08-22 23:20:13


Response to AS: Photo Negitive 2005-08-22 23:29:14


will do sir :D
although that was not made by me, it was made by sdomeone who was making fun of raving. and i just made it change colors to try and learn setTransform() me and that guy both dont like techno and or raving. although respect those who do

Response to AS: Photo Negitive 2005-08-23 07:29:22


At 8/22/05 10:46 PM, dusty_h wrote: nice job.. i think i may use this for my part in the altered reality collab. I'm doing it full black and white shades so it would be cool to have all the colors flash invert at different times. If I just want one frame on the timeline to have inverted colors, I would just put the AS in that one frame and it would automatically turn it off after the frame right? Also, does it only invert movieclips, or everything on the stage?

yes, but you have to draw your own background and no they dont have to be mc's.
................................

Response to AS: Photo Negitive 2005-08-23 22:02:35


hey, i just used it in my collab part and it looks awesome. thanks.

Response to AS: Photo Negitive 2005-09-14 15:54:45


bumpzors for someone

Response to AS: Photo Negitive 2005-09-14 15:57:49


liek omg new solution:

onClipEvent (load) {
this.blendMode = "invert";
}

It's not the exact same thing, but if you place a MC the size of the stage over everything, that will invert all.

Flash 8 only.


Sup, bitches :)

BBS Signature

Response to AS: Photo Negitive 2005-09-14 15:58:14


Damn, it's flash 8 now, Let it go


wtfbbqhax

Response to AS: Photo Negitive 2005-09-14 16:26:40


At 9/14/05 03:57 PM, -liam- wrote: liek omg new solution

Man, blend modes make me wet =)


BBS Signature

Response to AS: Photo Negitive 2005-09-14 17:15:39


At 8/18/05 07:49 AM, Glaiel_Gamer wrote: http://img363.images..p?image=tinty1gn.swf

OMG! It changes colors! That was great!