Intrologo only in first scene

  • Hi,

    I want my intro logo only in the first scene, now it shows top in all scenes, please advice.

    Thanks Marcel


    <plugin
    name="intro"
    url="logo_mw.png"
    align="center"
    keep="true"
    onloaded="showintro();"
    onclick="hideintro();"
    zorder="100"
    handcursor="false"
    />


    <action name="showintro">
    set(plugin[intro].enabled,true);
    tween(plugin[intro].alpha, 1, 0.5, default);
    </action>

    <action name="hideintro">
    if(plugin[intro].enabled,
    set(plugin[intro].enabled,false);
    tween(plugin[intro].alpha, 0.0, 0.5, default);
    );
    </action>

  • When I use this I get an XML error:

    <action name="startup">
    if(plugin[only1time].onlyonce == 0, set(plugin[introimage].visible, true));
    </action>

    <action name="hideintroimage">
    set(plugin[only1time].onlyonce, 1);
    if(plugin[introimage].enabled,
    set(plugin[introimage].enabled,false);
    tween(plugin[introimage].alpha, 0.0, 2.5, default, removeplugin(introimage)););
    </action>

    <scene>
    ...
    <plugin name="only1time"
    onlyonce="0"
    />

    <plugin name="introimage"
    keep="false"
    visible="false"
    url="images/instructions.jpg"
    align="center"
    scale=".9"
    onloaded="set(alpha,0); tween(alpha,1);"
    onclick="hideintroimage();" />

    </scene>

  • On load tour or first scene start your showintro action/
    Set some variable (not plugin) that will check if you play action.
    set(only1time,true);set(only1time,false);

    It's all


    By the way, in vrTourSoft you can set start action and select how many times to play it.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!