wouldn’t that be putting the second background a whole extra space the size of the background picture away? why wouldn’t there be a big white gap there? I ran the program, and there is no gap, so it is obviously a gap in my understanding. the dimensions are 256*192. so why wouldn’t it be bgX + background.width + 1?
ahhhh! that’s what I didn’t connect the dots on. you’re right, the image is being scaled 2x, so the background width is doubled. of course. so if it was just a normal scaled image it would bgX + background.width.
thank you so much!
that also make sense for the width. a 256 pixel wide image starts at pixel 0 and 255 is the last column. bgX + background.width would line it up at 256, and my thought of +1 would leave a 1 pixel wide white line.