put an action in "slider-blend-cubes" [solved]

  • Hi,

    I would like to put a different "showtext" legend on each panorama in "slider-blend-cubes" example but the script is complex and everywhere I try to put it gives me an error (or displays nothing), and if I put it in startscene action it displays for both panoramas.
    The problem is that I declare slider_grip action as global in a complete tour, and each scene has its own legend, so I can't put the showtext action in slider_grip action, only in setalpha and setblend contained in scenes


    But this shows the legend2 text in both cases

    any help please ?

    Thank

    Phil

    Einmal editiert, zuletzt von Albomec (4. Oktober 2011 um 09:53)

  • Hi,

    Found it :
    simply put a "if" statement in setblend action :

    Code
    if(newx LT 0.5, showtext('legend1', infostyle2);
    if(newx GT 0.5, showtext('legend2', infostyle2);


    I don't know if it's the right way, but it works.
    As I'm not a programmer, I'm happy happy enough to share this one :°)

    Phil

Jetzt mitmachen!

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