Parallax in an if statement


hi all,

 

i'm trying parallax effect in small spot in animation. trying put in if...else statement parallax effect runs within time want to, , doesn't overtake rest of animation.

 

here's have far:

 

in creation complete:

 

if (sym.getposition() > 34000){

    this.onmove=function(posx, posy){

        timelinecontrol = number(posy)*10+34000;

        console.log(timelinecontrol);

        sym.stop(timelinecontrol);

    }

}

else{

sym.play();

}

 

i tried using // rid of if, else part , ran parallax without constraints , parallax effect ran fine, overtook rest of animation see part.

 

should keep trying use "if" statement? right way go? how work properly? how, also, if statement go between 2 numbers i.e. sym.getposition() > 34000 & < 44000

 

should maybe try while statement? how go coding that?

 

thanks in advance help! i'm novice @ coding, has been bit of headache me.



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP