Hi Folks!
I’ve been lurking for a while and have found some wonderful and helpful resources. This is an awesome community.
I’m working on a new game which is coming along well, but having a problem with setting up a simple scroll mechanism.
I’ve looked at all the samples, and tried a few things, but not sure if I am over complicating it or not.
Here is what I am trying to do:
I’m initially targeting the iPad, so I have a stage that is set at 1024x768
My artist is creating scenes that are double the width at 2048x768
This is so the user will be able to start the game with the left side and scroll back and forth to see the right side of the scene during game play.
During the game, NPCs will be able to move off the screen and onto the “hidden” side of the scene, at which point the user would need to scroll over to the other side to see those NPCs.
Now here are a couple questions:
1 - Should I simply use a full size 2048x768 image and then just scroll the image back and forth? Or does it make more sense to use 2 images, one for left and one for right and switch between the 2 images?
2 - I would want to also have some simple parallax so that I can have a “far” scene layer like sky moving at slightly different rate. This is similar to Angry Birds where you can preview the entire screen by scrolling a single screen to the right and then back.
I guess the most important starting point for me now is to decide to use single full size scene images or separate left and right images.
I’ve seen the ghosts v monsters where they use left and right, but it seems like a lot of code and didn’t know if I was just missing something simple.
I’d really appreciate some coding suggestions for best practice.
Thanks a bunch! [import]uid: 57496 topic_id: 14992 reply_id: 314992[/import]

[import]uid: 52491 topic_id: 14992 reply_id: 69661[/import]