? Indefinite map scrolling in SB3? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022

Indefinite map scrolling in SB3?

  • #1 ✎ 74 Gaelstrom_Valence Drawing I like to draw! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength First Month Joined in the very first month of SmileBASIC Source Website The tile limit is probably enough for my purposes, so I'm asking more out of curiosity for now. Since the end of a map just gets cutoff, at least as far as I can tell, is there anyway to do indefinite scrolling like in Petit Computer? Posted
  • #2 ✎ 396 CyberYoshi64 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Great Page Hidden Achievements Night Person I like the quiet night and sleep late. Express Yourself I had a system that extended the limit before my SD died again. I had the map data stored in a 2D array (and maybe have 2 or 3 of them for the layers). Then I set up the BG layers being slightly bigger than the screen and keep track of the BG position in seperate variables so I can rerender the scene if the screen was moved. I'll try remaking it asap to show what I mean. Posted
  • #3 ✎ 74 Gaelstrom_Valence Drawing I like to draw! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength First Month Joined in the very first month of SmileBASIC Source Website I don't know what your solution is But I glanced into, I think solid soldier's code, and it looks like it just kind of emulates the indefinite scrolling by using BGCOPY Posted
  • #4 ✎ 396 CyberYoshi64 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Great Page Hidden Achievements Night Person I like the quiet night and sleep late. Express Yourself
    it looks like it just kind of emulates the indefinite scrolling by using BGCOPY
    Yes, that's actually it; you keep the scroll offset in a portion like BGOFS 0,32+X MOD 16,32+Y MOD 16 and at the edges of the BG layer, you feed new data. whereas the 32+ offsets the BG screen so you can also feed data on the left and top edges without the "seam" being on-screen
    Posted