Jump to content

Scrolling background with switching images


BunBunBun
 Share

Recommended Posts

Hi all, 

for example we have 3 type of images(400x600px) for background. and we have the game size (400x600px too).

how to better realize the progressively selecting 3 types (or more) of images with auto-scrolling?

1) create 2 images and move their Y-coordinate, then just switching the nameFrame. I think that this decision will slow down the performance of the game. to move so big images.

2) create via tileSprite object and move tilePosition.y, create the bitmap of back1 + back2, scroll them. then re-create the bitmap... and etc.

any ideas?

backs.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...