Be a Supporter!

AS: Photo Negitive

  • 4,378 Views
  • 43 Replies
New Topic Respond to this Topic
liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to AS: Photo Negitive Sep. 14th, 2005 @ 03:57 PM Reply

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
fwe
fwe
  • Member since: Jul. 24, 2003
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to AS: Photo Negitive Sep. 14th, 2005 @ 03:58 PM Reply

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


wtfbbqhax

Rantzien
Rantzien
  • Member since: Jan. 27, 2005
  • Offline.
Forum Stats
Member
Level 15
Blank Slate
Response to AS: Photo Negitive Sep. 14th, 2005 @ 04:26 PM Reply

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

Man, blend modes make me wet =)


BBS Signature
Grant
Grant
  • Member since: Aug. 6, 2005
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to AS: Photo Negitive Sep. 14th, 2005 @ 05:15 PM Reply

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

OMG! It changes colors! That was great!

Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to AS: Photo Negitive Oct. 24th, 2005 @ 08:55 AM Reply

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
sonic232
sonic232
  • Member since: Jun. 17, 2005
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to AS: Photo Negitive Jan. 19th, 2006 @ 09:15 PM Reply

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.

Depredation
Depredation
  • Member since: Sep. 5, 2005
  • Offline.
Forum Stats
Member
Level 17
Game Developer
Response to AS: Photo Negitive Feb. 25th, 2006 @ 03:33 PM Reply

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

,Ali.


BBS Signature
Newsdee
Newsdee
  • Member since: Jan. 21, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to AS: Photo Negitive Feb. 25th, 2006 @ 03:45 PM Reply

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.

Glaiel-Gamer
Glaiel-Gamer
  • Member since: Dec. 28, 2004
  • Offline.
Forum Stats
Member
Level 28
Game Developer
Response to AS: Photo Negitive Aug. 16th, 2006 @ 12:08 PM Reply

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

No wonder it was hard to find again

Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to AS: Photo Negitive Aug. 16th, 2006 @ 12:19 PM Reply

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
Glaiel-Gamer
Glaiel-Gamer
  • Member since: Dec. 28, 2004
  • Offline.
Forum Stats
Member
Level 28
Game Developer
Response to AS: Photo Negitive Aug. 16th, 2006 @ 12:34 PM Reply

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.

125Maniac
125Maniac
  • Member since: Sep. 14, 2007
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
zenyara
zenyara
  • Member since: Jun. 17, 2005
  • Offline.
Forum Stats
Member
Level 15
Blank Slate
Response to AS: Photo Negitive Apr. 25th, 2008 @ 02:18 AM Reply

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

Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to AS: Photo Negitive Apr. 25th, 2008 @ 03:33 AM Reply

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