Help with RPG engine

I've made somewhat of a tile based project where it clones itself and will repeat itself, over and over, however I ran into an issue with the clones, They do not generate on the left and bottom side of the screen.

If someone could help me with this I'd greatly appreciate it. Thank you

Almost forgot the link lol

why are you subtracting one?

untitled script pic(127)

just do this

untitled script pic(126)

and it fills the screen. well, almost, you may want to actually add 1 to the y count

heres my tile scroller if you want to look at it. ive went though alot of the same things.

I did minus one because I was planning on doing a border later, and it runs a tad smoother on my computer

Thank you I think I know what I did wrong now..