Well, I'm no plane game expert, but here's probably how I'd approach it...

Within your PlaneGame movie, create a child sprite called Camera.

Make all your interface stuff children of the PlaneGame movie. But make the
background, your plane, the enemies, etc, all children of this Camera child
sprite.

Then, when it comes to creating the "background scrolling below you" look,
don't have your background move at all. Only have the things that would
actually move in real life (planes and tanks and whatever) move.

Instead, make your Camera sprite scale and/or move itself to track your
plane (or, even better, a point a couple hundred pixels in front of your
plane.) That will make it look like the background is moving, but it's
really staying in place. And it will simplify your planes and tanks and
bullets, because you can basically just look at each sprite's position and
velocity, without having to try and somehow compensate for a magical moving
background.

For development purposes, by the way, I would start your game by not having
the camera move at all, and just making sure everything works right in a
tiny little world the size of your screen. Once that's working, then you can
enlarge the bounds of your world and start moving your camera around.

Good luck!

--T



On Sun, Jan 25, 2009 at 11:16 AM, Corban Baxter <corb...@gmail.com> wrote:

> hey guys! I'm trying to build a simplified version of
> http://www.miniclip.com/games/skies-of-war/en/. Mostly looking to
> replicated the movement. But I have no ideas on where to start. I'm
> having alot of trouble setting the angles correctly to give the
> background a constant speed but allowing it to change angles. I
> understand its going to be based on the planes current angle. But
> that's where I get confused on getting the speeds to not over lap and
> making it seem like it moving faster. Ok I'm rambling now. but I was
> hoping someone might be able to help me understand this better and
> give me some examples I could use to get moving. Any help would be
> great! thanks!
>
> --
> Corban Baxter
> http://www.projectx4.com
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to