PDA

View Full Version : I'm working on the "fade grid" tutorial and am having some problems...



h3o
October 6th, 2003, 12:54 AM
The tutorial I am working on is at:

http://www.kirupa.com/developer/mx/fadegrid.htm

I have no problem with the fade grid effect itself but... I'm trying to make one of the squares (which is a guy in the middle of a scenic landscape) visible first giving the effect that you can only see him first, then the grid squares fade in to reveal the landscape that he is standing in.

So I tried just cropping the square out in photoshop, then just placing it in the exact same spot above the original image, but everytime the movie gets to the portion in the timeline with the actionscript, the little square with the man in it dissapears. I want the square with the man in it, to remain on the stage from beginning to end, as top layer.

Does anyone know what the problem might be? Thanks! (.fla file is attached for your review)

Voetsjoeba
October 6th, 2003, 02:25 PM
You didn't read the tutorial carefully. It said to make sure that both the width and the height of the image movieclip have to be perfectly dividable by the width (and height since it's a square) of the box. So I changed it to 25. I also made quite some changes to get the desired effect.

h3o
October 6th, 2003, 04:09 PM
Voetsjoeba, thanks for your help with the file! Yeah, I had the square size at 25 the first time but it didn't seam up with the grid, so I played around with it until it did. I wanted the square of the man to match in with the rest of the grid evenly, that is why I changed the size. But thanks for adding the "depth 1000" for the small man photo. I am a beginner with actionscript... could you explain that? the depth change you made? Thanks.

h3o
October 6th, 2003, 04:10 PM
Also, How do I change the speed of the alpha grid? The speed of the grids appearing...

Voetsjoeba
October 8th, 2003, 09:23 AM
There's a var called smoothness; it indicates the alpha one mc must reach for another one to start fading out. So if you set this to 99, it will fade at it's fastest. The framerate also influences the speed.

The depth change: I did that because every box I duplicate, has to be placed on it's own level. They are placed at depths of 0/1 (can't remember :P) to the total amount of boxes, so each box has it's own depth. Now to be sure that the movieclip of the man stays in front, I place it at a depth of 1000, bringing it in front of anything in lower depths. I used 1000 just to be sure it'd be in front and I'd didn't overwrite a depth.

dwilt
October 9th, 2003, 01:54 PM
I made something like that..
www.enhancedinnovations.com/brp/