|
-
[RESOLVED] [AS3] Moving large backgrounds around in a flash game
I'm making a game right now which moves a battlefield around as you pilot your plane.
http://prosata.com/test/Mi/Mi.swf
Controls
-------------------------
Move Forward- Up Arrow
Turn Right- Right Arrow
Turn Left- Left Arrow
Fire Bullet- Ctrl
------------------------
The Problem:
The battlefield is resized according to your browser's dimensions. I know that by making the battlefield large it causes the player to lag more.
I was just wondering which is the best way to create a constantly moving large background?
Currently I'm using one large Sprite Object now and moving it around. It seems to be the quickest method so far, but still sluggish.
I tried using a BitmapData object and then using the fillRect method, but this was even slower.
Any advice would be greatly appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|