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
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.
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..
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?
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."
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.