Warning: Declaration of thesis_comment::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::end_lvl(&$output, $depth, $args) should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::start_el(&$output, $comment, $depth, $args) should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::end_el(&$output, $comment, $depth, $args) should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0
Parallax Scrolling in Flash [AS3] โ€” Michael James Williams

Parallax Scrolling in Flash [AS3]

by Michael James Williams on October 21, 2009 · 1 comment

in Tutorial

[flash http://gamedev.michaeljameswilliams.com/structure/ParallaxScrolling/SWFs/ParallaxPreview.swf w=550 h=400 preview={http://gamedev.michaeljameswilliams.com/structure/ParallaxScrolling/Images/ParallaxPreview.png} mode=3]

Click to play

I wrote a tutorial for ActiveTuts+ (previously known as FlashTuts+) about parallax scrolling, an effect you can use to make 2D games appear to have more depth. You can see the effect in the little demo above.

Click here to check the tutorial out.

Actually, it explains a few more things beyond the parallax effect, like how to make your game’s “camera” (or “viewport”) appear to follow the player, and how to create infinitely repeating backgrounds รก la Scooby Doo ๐Ÿ™‚

It’s pretty long, so I tried to lay it out in such a way that you don’t have to read the whole thing to benefit from it. For example, you only have to read the first half or so in order to understand how to make a side-scroller.

I’ll be following the comments there in the same way that I follow comments on my own blog, so if you have any questions, please post them over on ActiveTuts+.

And if you make anything cool with the effect, I would love to see it ๐Ÿ˜€

Comments on this entry are closed.

{ 1 trackback }

Previous post:

Next post: