Homebrew Moving Background (DS Homebrew)

  • Thread starter Thread starter Ray =D
  • Start date Start date
  • Views Views 2,679
  • Replies Replies 7
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?
 
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^^
 
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