I was wondering how to add a scrolling menu to my app like tiny wings or angry birds. In tiny wings, the background moves from right to left and I was wondering how they accomplished that. Thanks in advance.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not familiar with either app (yes, a gaming Ludite), but if you make a view wider than the screen you can move it’s location/center/frame/transform/etc. to make it move, you can animate that action too.
if you make the first 320 points (we measure in points, not pixels) of the width of the view equal to the last 320 points, you can jump the view’s location when it reaches the end and keep going for ever.
Edit (example code):
untested
Edit #2
also untested
Edit #3
Reviewed your code. You should pay attention to the compiler warnings.