spheretoscreen not working

  • The following action stops executing at spheretoscreen statemant. The screentosphere works fine. I am never getting to 'd' trace statement. What am I doing wrong?


    <action name="r">
    set(h, 10);
    set(v, 10);
    set(x, 10);
    set(y, 10);
    trace('b');
    screentosphere(x, y, h, v);
    trace('c');
    spheretoscreen(h, v, x, y);
    trace('d');
    </action>

  • Hi,

    when do you call the spheretoscreen action?
    directly on start? (onstart or onxmlcomplete event)

    I have tested your code and right there is a small bug when calling it at start - the internal transformation matrix is not calculated at this stage and so the screentosphere and spheretoscreen actions don't work correctly - this will be fixed soon in the next release,

    as workaround you could add a short delayedcall (even 0 as delay should be okay),

    best regards,
    Klaus

Jetzt mitmachen!

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