Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

i have an image that i set as background. I use texture Region for my image. i put this in update method.

    batcher.draw(background, 0, 0, 320, 480);

How could i use offset when i swipe my live wallpaper in home screen?

share|improve this question
Wouldn't you increment the position and bounds? What have you tried already? If you give us more information on what you've tried and why it didn't work, we're more likely to give you suggestions that are useful to you. –  Byte56 Jun 25 '13 at 14:24
i have write this this on offset change method MainScreen.X_OFFSET = xOffset; do i need to detect gesture? swipe right or left then change the offset? –  user2118097 Jun 26 '13 at 3:06
Yes, the offset would change based on your input. –  Byte56 Jun 26 '13 at 3:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.