Snake Tutorial Tile Error (SOLVED)


When following the Snake Tutorial, I came across this error message
ERROR:GAMESYS: Could not set the tile since the supplied tile was out of range.
This was after I added the tilemap + script to the collection and changed the script. The tutorial says that a green snake should appear, 4 tiles long, however either it is being hidden or nothing is being created. I tried moving the tilemap around and changing it’s position, looked at previous forum questions but the error message still remains.



Did you paint the border around the edge of the screen?

1 Like


The tilemap only contains the area bounded by the tiles you’ve initially set when painting it.
And, if you later try to set a tile outside of that area, you’ll get an error.



Yeah I repainted the tilemap to a much larger area and that seemed to fix it. Thanks!