Homebrew Moving Background (DS Homebrew)

Dirbaio

Well-Known Member
Member
Joined
Sep 26, 2010
Messages
158
Trophies
0
Age
111
Location
Spain
Website
dirbaio.net
XP
108
Country
Are you using LibNDS?

If so you can use bgSetScroll(id, x, y) and then do bgUpdate()
If you're using rotoscale/extended backgrounds then it gets a bit more complicated because there are more functions. There's an example on that that comes with devkitPro.

I could help if you gave more details. What and how do you want to scroll exactly?
 

Ray =D

Well-Known Member
OP
Member
Joined
May 17, 2011
Messages
288
Trophies
0
Website
www.youtube.com
XP
143
Country
Gambia, The
I have a Bottom Screen (Yeah the nice game which I'm programming with CoolAs :P) and a Top Screen. On the top screen is a background. And this background should move always to the right.
Would be "bgSetScroll(1, x++, y)" correct? And I am using LibNDS^^
 

LeRodeur

Well-Known Member
Member
Joined
Dec 12, 2009
Messages
162
Trophies
0
Age
30
XP
190
Country
France
You must increment x before and not in the function, ++is a function that will return 1or 0, depending on if the action on the variable has been done, so 1in 99.999%
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Least they got head in the end