Text Introdution

  • #1, by duartegarinSunday, 29. December 2013, 02:47 7 years ago
    Hey guys,

    So I'm trying to make onde of those text intros like Star Wars, or Blade Runner, where the text srolls.

    Can you point me inthe right direction as to how to do it in Visionaire? Is it possible using the editor or do I have to write LUA?

    Thanks in advance,

    Duarte

    Newbie

    21 Posts


  • #2, by afrlmeSunday, 29. December 2013, 05:13 7 years ago
    I don't remember scrolling text in blade runner but it's been a fair few years since I have seen it. as for star wars the text moves up & shrinks the further away it gets from the camera. it's possible to have text as an image (animation) & slide it up/down the screen with a bit of lua but if you wanted to shrink the text too then you would need to have each line of text as an individual image/animation, so that you can control the direction it should move & also the current size of each line/image/animation.

    Imperator

    6842 Posts

  • #3, by duartegarinSunday, 29. December 2013, 05:19 7 years ago
    Hey, thanks for the reply.

    Here is the intro for Blade Runner, so you can see more or less what I'm talking about. Its the intro text right after the logos.



    I don really need shrinking text, just the scroll from bottom to top until it disappears.

    I assume I won't need to have an image for this right? But use LUA nonetheless?

    Thanks the help.

    Newbie

    21 Posts

  • #4, by NigecSunday, 29. December 2013, 09:20 7 years ago
    Swish Max can do it as a movie clip

    I don't know if it would help any but there's a C# version here:
    http://www.codeproject.com/Articles/18820/Star-Wars-style-te...

    Key Killer

    563 Posts

  • #5, by afrlmeSunday, 29. December 2013, 13:15 7 years ago
    I'm not sure that you can scroll actual displayed text with lua - I have not tried mind but simplest method would be to create the whole text block as an image & then use lua to slide it up to x position. having said that; controlling the speed of it is somewhat more complicated as you need to control how many pixels it should move by, but if you really want to control the speed then you need to combine it with the jump to x action part inside of the vs editor along withan if query & a condition. (although technically I think you could probably just restart the action via startAction in Lua if current position of image does not equal destination position ....)

    alternatively you could just sort it out in some video/3d software as Nige said.

    Imperator

    6842 Posts

  • #6, by afrlmeSunday, 29. December 2013, 13:39 7 years ago
    something along the lines of this...

    1. create a "called by other action" somewhere inside of the edit & rename it to something like: "act_scroll_text" & then inside of this create a pause action & set a value in which we are using to delay the movement of the scrolling text (should be less than 1000ms) & then afterwards add a "call script" action part which calls the "execute" script below.

    2. now create a new script in script tab & set it to execute in it's properties tab. & now for the script.
    local anim = getObject("ActiveAnimations[add name of scrolling text animation image here]") -- get animation
    local pos = anim:getPoint(VAnimationCurrentPosition) -- get current position of animation
    local scroll_by = 1 -- number of pixels it should move by
    local dest = -2000 -- y destination co-ordinate value

    if pos.y ~= dest then -- if y position does not equal destination position then move animation by x value
    anim:setValue(VAnimationCurrentPosition, {x=pos.x, y=pos.y - scroll_by})
    startAction("Actions[act_scroll_text]") -- restart linked action
    end
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10


    not tested (written off top of my head) but should work, I think.

    Imperator

    6842 Posts

  • #7, by duartegarinMonday, 30. December 2013, 11:24 7 years ago
    AFRLme legend as always,

    Going AFRLme to try it out!

    Thanks a mil =)

    Newbie

    21 Posts

  • #8, by afrlmeMonday, 30. December 2013, 11:46 7 years ago
    no problem smile

    Imperator

    6842 Posts

  • #9, by foremmaThursday, 31. July 2014, 22:20 6 years ago
    Hey sorry to bring up an old thread but I'm trying to use AFRLme's script...I can't figure out what to put after where it says "ActiveAnimations" in the script though.

    I put the image of the text I want to scroll as a single-frame animation in an object. I tried putting the name of that animation after the "ActiveAnimations" but it didn't work. What am I doing wrong?

    Sorry if this is a dumb question...I searched around but I can't find what ActiveAnimations is supposed to refer to...tried looking at the "index of useful visionaire tutorial threads" but it links to a blank page, and tried looking at the wikis and it didn't help me out...hah sorry anyway I'm happy I stumbled upon this script cause it seems perfect, I just can't get it working--can you point me in the right direction? Thanks grin

    Newbie

    32 Posts

  • #10, by afrlmeThursday, 31. July 2014, 22:58 6 years ago
    Active animations are animations that are currently playing in the active scene or are animations that have been preloaded.

    The thing with animations is that for them to loop you have to set them to infinite as they will automatically unload after they have played the specified amount of loops thus becoming an inactive animation.

    Also when using a single frame animation it is a good idea to set an high pause value - to save memory - seeing as you don't need it to loop between other frames; something like 999 is ok.

    Hope this helps clear things up a bit.

    P.S: the animation name is case sensitive & it also helps if you don't have any other animations with the same name; especially in the same scene.

    P.P.S: that script was written off the top of my head & there's no guarantee it will work. Also the script is meant to be used with the jump to x action part to create a loop seeing as the script itself contains no loop. Technically you could now do this with lua script alone as I have recently written a loop & delay handler script which allows you to create a loop which loops x times or infinitely every x amount of time. There is already a loop handler but the default one loops every 1-5ms which can be a bit fast for a lot of things.

    Imperator

    6842 Posts

  • #11, by foremmaFriday, 01. August 2014, 00:14 6 years ago
    Thanks for the quick reply! I thought the script you wrote did loop though? Because first the script is called, and then the script "calls" the action again, which then calls the script again--right?

    Newbie

    32 Posts

Write post