Placing a slide button in vtourskin

  • Hello there,
    I want to slide the scenes.

    I wanted to embed the code I found in this form before in vtourskin, but unfortunately it didn't work :(
    Thanks in advance to anyone who can help with this.

    Code
    <action name="bombtimer">	
     set(bt,%1); add(bt,1); delayedcall(0.1, bombtimer(get(bt))); if(bt == 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();, );	
     </action>
    
    
    <action name="nextscene">	
     set(ns, get(scene[get(xml.scene)].index) ); set(maxs, get(scene.count) ); add(ns,1); if(ns == maxs, set(ns,0);, );	
     loadscene( get(scene[get(ns)].name ), null, MERGE, BLEND(1.5) );	
     </action>


    little kids inside vtourskin:

    Code
    <layer name="skin_btn_slayt2"   style="skin_base|skin_glow" crop="64|1150|64|64" align="left" x="210" y="0"  scale="0.5" onclick="bombtimer(0);" visible.mobile="false"/>


    Is there any other way to do this?

    Good work.
    Muhammed

  • Code
    <action name="bombtimer">	if(bt GE 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();,set(bt,%1); add(bt,1); );	delayedcall(0.1, bombtimer(get(bt))); </action>

    You could write it like this.But your code is too cumbersome, there could be a simpler way.

  • Code
    <action name="bombtimer">	if(bt GE 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();,set(bt,%1); add(bt,1); );	delayedcall(0.1, bombtimer(get(bt))); </action>

    You could write it like this.But your code is too cumbersome, there could be a simpler way.


    When I add this code, continuous scenes appear in slide mode.
    so the problem is not solved.
    How can I add it in vtourskin?
    What is the practical way of doing this?

    Thanks in advance for your help.

    Muhammed

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!