Skip to main content
Known Participant
June 18, 2011
Answered

how to? make stage and background unlimited

  • June 18, 2011
  • 1 reply
  • 428 views

i want to make my game stageand background unlimited when when my player character moves to the right

how can i do that?

i wouldlove a sample code

btw my background is a movieclip

Thanks                

This topic has been closed for replies.
Correct answer blazejewicz

Hi,

you know - stage has finite dimensions (max dimensions) in Flash runtime:

http://kb2.adobe.com/cps/496/cpsid_49662.html

but I assume you're looking for something called parallax scrolling

You could start with entry article (Flash/actionScript + source files + demo) here:

http://active.tutsplus.com/tutorials/games/add-depth-to-your-game-with-parallax-scrolling/

(the car - actor in game - moves to the right and background scrolls during that movement, etc)

hth,

regards,

Peter

1 reply

blazejewiczCorrect answer
Participating Frequently
June 18, 2011

Hi,

you know - stage has finite dimensions (max dimensions) in Flash runtime:

http://kb2.adobe.com/cps/496/cpsid_49662.html

but I assume you're looking for something called parallax scrolling

You could start with entry article (Flash/actionScript + source files + demo) here:

http://active.tutsplus.com/tutorials/games/add-depth-to-your-game-with-parallax-scrolling/

(the car - actor in game - moves to the right and background scrolls during that movement, etc)

hth,

regards,

Peter