The Daily Click ::. Forums ::. Klik Coding Help ::. Invisibility cloak with lens object?
 

Post Reply  Post Oekaki 
 

Posted By Message

Yikes



Registered
  22/06/2002
Points
  645
5th July, 2005 at 05:48:21 -

I have been looking anywhere, but I can't find any tutorials or texts that show me how you make an invisibility cloak with the lens object in mmf. I want to have that neat effect when someone is invisible but you can see the background being kind of reflected (like invisible units in the game starcraft)

Can anyone help me?

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
5th July, 2005 at 07:28:19 -

That's because it's more of a 3D effect. It would be quite hard to do in 2D. The reason that there isnt a tutorial or text about invisibilty cloaks with the lens objects is because nobody has made one.
Edit
The only thing I can think of is using the overlay object to redraw the pixels behind your active object to give it a 'rippled' effect. Try searching on TDC or Clickteam forums for reflections with the overlay object, they are however quite complex.

Image Edited by the Author.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
5th July, 2005 at 11:44:19 -

You can change the shape and magnification of the lens
Surely, you can change the shape to the shape of the person, not sure if you can change the shape at runtime tho..

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
5th July, 2005 at 18:16:21 -

You can grab a frame from an active object at runtime, so in theory you can have the lens object whatever shape you want and animate with that method.

 
Image

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
8th July, 2005 at 23:44:58 -

It's very easy. He's a quick way to do it.
Value ActiveCamoOn("ThePlayer") = 1 --> Make ThePlayer invisible

Always --> Set Lens position to ThePlayer (0,0)
Import Active: ThePlayer

The only problem with this method is that the lens object will be in the wrong position for certain animations, depending on their hotspots. Does anyone know an extension that can retrieve the hotspot of an active object?

Image Edited by the Author.

 
http://www.klik-me.com

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
9th July, 2005 at 00:24:34 -

X("Active")

Y("Active") ?

 
n/a

Batchman



Registered
  08/08/2003
Points
  231
9th July, 2005 at 06:30:54 -

i've seen an example of a alien being ''invisible'', it was at the CC 2004

 
n/a

Long John Kickbag



Registered
  26/08/2002
Points
  148
9th July, 2005 at 07:22:40 -

You can use X("Active")-X Left("Active") and Y("Active")-Y Top("Active") to retrieve the hotspot of an active object.

 
Resize! - www.clicksplat.com/comparison.html

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
9th July, 2005 at 09:28:25 -

I didn't know you could import actives with the lens object. That looks really good now, once I change the height modifier. Looks just like SC.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Wicked Studios



Registered
  25/10/2004
Points
  460
12th July, 2005 at 13:01:07 -

Heres an idea, not sure if it will work. Make the lens over the player, and use the overlay redux to redraw the background behind the shape of the player. This is only a theory, but it may work.

 
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
17th July, 2005 at 22:30:46 -

Easiest method? Just copy & paste the sprite as the lens object's image. The only problem would be that it's hell to do animations with it and tiring to make more than one direction for it, but the thing's invisible anyway, so it shouldn't be too noticable .

The lens object is a very heavy object, so if you're thinking of making more than one of them, be sure to delete some of them. Unless you're an experienced enough coder, I'd suggest you just stick with transparency .

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click