Copy link to clipboard
Copied
function movePipesandLines(event:Event):void {
pipe1.x = pipe1:x - 5;
pipe2.x = pipe2:x - 5;
pipe3.x = pipe3:x - 5;
pipe4.x = pipe4:x - 5;
}
stage.addEventListener(Event.ENTER_FRAME, movePipesandLines);
// if you have any suggestions please let me know
thanx
Copy link to clipboard
Copied
It looks like your changes to pipe1.x etc have a typo in the second declaration. It reads pipe1.x = pipe":"1.x - 5. You have a colon instead of a period.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now