Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I need help on making an infinite scrolling checkerboard pattern
- 6543ozne
-
Scratcher
92 posts
I need help on making an infinite scrolling checkerboard pattern
Hello, currently i am making a game and wanted the title screen to have a green and white checkerboard background, so I found some code from @Instinction_Gaming and tried it, but when I did, the ends are cut off. Does anyone have any ideas on how to fix this, or a better way to do this?
The code in question:

The code in question:

- Spentine
-
Scratcher
1000+ posts
I need help on making an infinite scrolling checkerboard pattern
Every time before you use a movement block (the big blue ones, not the small ones), you
afterwards you set it back to the original image
switch costume to [large v]where large is a vector image of a huge rectangle that goes past the corners of the screen.
afterwards you set it back to the original image
- 6543ozne
-
Scratcher
92 posts
I need help on making an infinite scrolling checkerboard pattern
Every time before you use a movement block (the big blue ones, not the small ones), youStill wont work, sorryswitch costume to [large v]where large is a vector image of a huge rectangle that goes past the corners of the screen.
afterwards you set it back to the original image
Last edited by 6543ozne (March 5, 2022 10:00:24)
- 6543ozne
-
Scratcher
92 posts
I need help on making an infinite scrolling checkerboard pattern
nvm it worked thanks
- Jereb-co7
-
Scratcher
100+ posts
I need help on making an infinite scrolling checkerboard pattern
Every time before you use a movement block (the big blue ones, not the small ones), youswitch costume to [large v]where large is a vector image of a huge rectangle that goes past the corners of the screen.
afterwards you set it back to the original image
So to overcome sprite fencing?
You can use
...
if <touching [edge v]> then
switch costume to [null v] //null is a costume with a blank canvas without drawings on it
change x by (5)
switch costume to [checkerboard v] //the original costume
end
...
- Discussion Forums
- » Help with Scripts
-
» I need help on making an infinite scrolling checkerboard pattern


