• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps surfaceView background-pic

iQue

Lurker
alright, So im making my first game for android (SurfaceView 2D) and Ive hade the BIGGEST problem with setting my background to a picture, I finally found a way:
Code:
setBackgroundDrawable(mDrawable);
Ofc I set a pic to that drawable before that line, anyhow, What worries me is that in the LunarLander they dont do anything like this, I cant even find where in their view they make their bg fullscreen, so maybe this isnt the best way to do it? performance-wise?

Also, has any1 played the game where you roll a pig down a path, and you have to avoid things/eat things. How do I make my bg follow my sprite like that? is there any tutorial for this or any tips? cus Ive been looking for anything like that for days.


Any help appriciated :)

Im new to this forum and just realised Ive posted this in the wrong topic (I think), so if any1 can move it, plz do.)
 
I've moved this to the application development forum so you can get some better eyes on it.:)
 
Back
Top Bottom