Announcement

Collapse
No announcement yet.

fade in/out scaleform trigger help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    fade in/out scaleform trigger help

    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:

    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;
    }
    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:

    Code:
    stop();
    
    onMouseDown = function(){
             _root.gotoAndPlay("fade_in");
    	
    }
    followed by frame 25 with:

    Code:
    stop();
    
    onMouseDown = function(){
    	_root.gotoAndPlay("fade_out");
    }
    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!

    #2
    I found a short cut solution to this.. I did it an alternative way so that the fade is within the flash movie (both in and out) and the setup would be when you approach the window, the trigger will activate - locking your character in place through cinematic mode toggle. You are still look around however you wont be able to move. at the same time as the movement freeze, the animated text pops up, along with a prompt ill place at the bottom which tells you to click to continue. Basically the animated text appears in cinematic mode, then when the player clicks, it removes cinematic mode and fires off an fscommand at the end of the flash fade out to close the gfx movie..

    I guess it'll do but if anyone knows an alternative to this then it would be great to hear! Im still learning so as much info as possible is always a plus!

    Comment

    Working...
    X