Im trying to get the illusion of an endless map for my game, but the wrap function just teleports the player, making the enemies disappear from their POV. Is there a way to do this without making the layout absurdly large?
it's endless already, no illusion needed!
Develop games in your browser. Powerful, performant & highly capable.
What do you mean? You have to set a size for the layout, don't you?
If you add ScrollTo on the player it becomes an infinite space
Yo, back to this post for a bit, but how can i make the actual background also be infinite? Right now im using a tiled background, should i resize it depending on if the player is approaching the border?
As far as I know there should be no effect on performance with stretching the tiled background out across the layout.
You can set "Unbounded scrolling" option. After that "scroll to" can follow object outside the Layout.
Maybe you want to create map like this?
Im not really looking for it to loop as much as im looking for it to just extend on endlessly.
Assuming your background is tiling, you simply extend it past the viewable area and center it horizontally or vertically under the player whenever the player moves a distance that is a multiple of the tile size in the respective direction.