PDA

View Full Version : need help with background movement



pixeldude
May 24th, 2010, 07:32 AM
Hi guys...

Actually..just need some input here..how to achieve such background movement as u can see in this racing paltform games...

http://www.kongregate.com/games/Long...rer=Jayisgames (http://www.kongregate.com/games/LongAnimals/cyclomaniacs/?referrer=Jayisgames)

don't take me wrong just need an idea how to achieve such background movement...

last mountain image move slow compare to racing platform image ....so how to achieve such view...

really need help with it..tq in advanced

genericguy
May 25th, 2010, 12:04 AM
By no means am I an expert, but as many people have helped me on this site I figure I'd try to lend a hand.

How about if you create a speed var and have each MC._x = speed/a number;




var speed = 10;

onEnterFrame = function(){
MC1._x = speed/8;
MC2._x = speed/6;
MC3._x = speed/4;
}