Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / How i make one Background Infinite ?

Author
Message
Waldemar Lima
9
Years of Service
User Offline
Joined: 27th Nov 2014
Location: Brasil
Posted: 8th Dec 2014 20:52
hello friends ... i need make one background infinite , equals of FlappyBird ... or similar ...

PrintC("Hello EveryOne !&quot
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 9th Dec 2014 19:28
check it's coordinates and reposition it if it moves too far (need to start at least 2x as big as the screen on any axis it is moving (for a complete movement - smaller if not going all the way of course)

i.e.


would move the sprite defined as 'background' from right to left until it reaches the edge of the screen and then go back to it's original point (in my case 0,0)

life's one big game
spec= 2.6ghz, 1gb ram, 512mb gpu, directx 9.0c, dbpro and classic

Login to post a reply

Server time is: 2024-04-19 13:37:41
Your offset time is: 2024-04-19 13:37:41