I want to reduce the number of image files and rooms on the map for my project. What I mean is I don’t want to make an unreasonably large image file, then upload it and add collisions to each one, so I want to try to use a tilemap system that is held up with a list, but make it read a small square around the player(Because the enemies becoming active or inactive is based on how close or far they are to the player), but I don’t know how to read it, I don’t want to use a giant list because I don’t know how big I want the map to be.
The main thing is that I want the tiles to spawn with assigned numbers, but to make it easier on the device, only one spawns per frame. Then, obtain a number that will tell it to become that tile in the list. When Qiste gets far enough away from it, teleport the tile all the way to the other side, so there is a Pseudo infinite scrolling tilemap. I know this might be hard to understand because I cannot explain it well, but I am saying is I want a similar tileset like what Griffpatch made for infinite scrolling on Scratch either like this: https://www.youtube.com/watch?v=g8xsQx-XkYE or like this: https://www.youtube.com/watch?v=YG_9KW3uDlc
Short answer: The tiles are either permanently stationary but shift over a unit(and change their costume to the unit they are becoming) every tile unit Qiste moves in that direction or jumps all the way over to the other side of the tiles when
Qiste gets far enough away from them
The script that will be used for the tiles(currently Blank, not the one that will spawn the tiles, this is just for the tiles to adjust themselfs): PlayCanvas | HTML5 Game Engine