"Turtle Fly" type game?

Hey, so how would I go about creating a game where you fly up and the screen moves with you (or the background just moves down) just like that “Turtle Fly” game?
Would i have to make a whole lot of different backgrounds and the stitch them together in code? Or is there some code that just repeats the background at the top of the screen as it moves off the page at the bottom?
thanks [import]uid: 86598 topic_id: 14698 reply_id: 314698[/import]

Did you try lime? it is one of the easiest way to move the scene with your character.

Cheers,

?:slight_smile: [import]uid: 3826 topic_id: 14698 reply_id: 54360[/import]

mmm yeah but i sorta dont want to pay for any software at the moment since im only experimenting on something
but thanks for the suggestion anyways [import]uid: 86598 topic_id: 14698 reply_id: 54370[/import]

If you only want the code to make the background scroll downwards (and loop, obviously) to give the impression of your hero flying forward, I have some code for that.

See here; http://techority.com/2011/07/16/how-to-use-a-scrolling-background-portraitdown/

Peach :slight_smile: [import]uid: 52491 topic_id: 14698 reply_id: 54386[/import]

thanks for that it worked well :slight_smile:
but lets say i wanted to be able to move in all directions (the background scrolls left and right too), would i have to create a big canvas in Photoshop and then import it into the stage?
If that is what i should do, wouldnt it make the game lag because of such a big picture? [import]uid: 86598 topic_id: 14698 reply_id: 54511[/import]

Hey Shaun,

It depends on the size of the image.

Take a look at this; http://developer.anscamobile.com/code/parallax-class

That’s controlled by drag but will give you an idea :slight_smile: (It runs fine, too.)

Peach :slight_smile: [import]uid: 52491 topic_id: 14698 reply_id: 54520[/import]