Hi!
I'd like in this example, when I pres one button , the circle that is already on the stage , leave from left (suppose -50 on x axis) and when it reach the -50 on x, then go to 810 again (so it is ready to come from left again).
Maybe I didn't explained well, but if u see the fla, I think you'll understand quickly what I mean...
thnx for any help
onClipEvent(load){
xspeed = 5; //speed of the clip
}
onClipEvent(enterFrame){
if(_root.movetoleft){ //if the variable is true
_x -= xspeed; //move the clip to the left
if(_x <= -50){
_x = 810;
_root.movetoleft = false;
}
}
}