Greetings all,
I have searched the forums and the net and was looking if someone could give me an explanation of the cleanest and simplest way to achieve a fade in/ out triggered GFX movie. What I have is a project where the player can wander round the interior of a cathedral and one of the aspects are some rather nicely painted stain glass windows... Well! What I need to do is create a section of text which activates on screen, telling the player the story behind the scene in the glass and what I would like to try and achieve is a fade in when the player hits the trigger point in UDK, then a fade out when they leave...
I have created a small example which demonstrates what i need to do;

The top layer labelled '3D' houses an effect which puts a slant on the text. the code can be seen below:
The actions on frame 1 and 25 are simple click commands which tell the movie to move on to the next sequence. The click command is just so I could see it working so I guess this will need replacing. The first action is:
followed by frame 25 with:
I have little to no Unrealscript experience and I am teaching myself Actionscript 2.0 at the moment so any help which could be given in the simplest form would be brilliant! I appreciate its annoying to see people begging for help on the forum so anything would be great!
To reiterate, In the UDK build I imagine Id need a trigger point to bring the text on screen, what I would like is a fade in/out for this text.
Thanks in advance!
I have searched the forums and the net and was looking if someone could give me an explanation of the cleanest and simplest way to achieve a fade in/ out triggered GFX movie. What I have is a project where the player can wander round the interior of a cathedral and one of the aspects are some rather nicely painted stain glass windows... Well! What I need to do is create a section of text which activates on screen, telling the player the story behind the scene in the glass and what I would like to try and achieve is a fade in when the player hits the trigger point in UDK, then a fade out when they leave...
I have created a small example which demonstrates what i need to do;
The top layer labelled '3D' houses an effect which puts a slant on the text. the code can be seen below:
Code:
import gfx.motion.Tween; _global.gfxExtensions = true; var angle:Number; function init() { // textBoxExample_mc._yrotation = -30; fade_mc._xrotation = -30; angle = 0; } init(); _root.onEnterFrame = function() { angle += 0.1; var sined:Number = Math.sin(angle) + 2; sined /= 2; //textBoxExample_mc._z = -600 * sined; fade_mc._z = -600 * sined; }
Code:
stop(); onMouseDown = function(){ _root.gotoAndPlay("fade_in"); }
Code:
stop(); onMouseDown = function(){ _root.gotoAndPlay("fade_out"); }
To reiterate, In the UDK build I imagine Id need a trigger point to bring the text on screen, what I would like is a fade in/out for this text.
Thanks in advance!
Comment