Rotation problems in my tour

  • Hello friends , I'm having the following problem:

    I have a system that by clicking on "auto tour" button , begins to rotate the tour and after completing the rotation change of environment.

    Happens when lodge it in my online server, it does not change environment is only infinitely running

    link:
    http://marcofeio.com.br/gyro/hb/vtour/tour.html

    code:

    <autorotate enabled="false" waittime="1.0" accel="1" speed="5" horizon="0" />

    <events onviewchanged="check_position();"/>
    <events onidle="start_position();"/>

    <!--<events onclick="trace('mouse clicked at ', mouse.x, '/', mouse.y);"/>-->
    <events onmousedown="set(user_action,true);"/>

    <action name="start_position">
    set(start_view,get(view.hlookat));add(end_view,start_view,360);inc(start_view,725040);mod(start_view,360);set(user_action,false);
    </action>

    <action name="check_position">
    if(user_action EQ 'false',if(view.hlookat GT end_view,set(user_action,true);skin_nextscene_loop(+1)); );
    </action>

    <action name="skin_nextscene_loop">
    add(newsceneindex, scene[get(xml.scene)].index, %1);
    sub(lastsceneindex, scene.count, 1);
    if(newsceneindex LT 0, copy(newsceneindex,lastsceneindex));
    if(newsceneindex GT lastsceneindex, set(newsceneindex,0));
    layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
    loadscene(get(scene[get(newsceneindex)].name),null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend));
    </action>

Participate now!

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