![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Mison |
I’m trying to make a Scramble style game which is a horizontal landscape scroller with a static character that can move independently up/down/left/right. I have made a tilemap which has the landscape but I don’t know how to move (scroll right to left) the tiilemap while keeping the player positioned in the middle of the screen. The player should be able to collide with the landscape.
I can scroll the tilemap by putting a camera on the player and making the player move (position.x +=1) but the tilemap scrolling needs to be independent of the player moving.
Any help/suggestions with just pointing me in the direction of tackling this is really appreciated. I’ve tried experimenting with viewports etc for a few days and I’m completely stuck.
Since posting this I have discovered that the tilemap can be scrolled(moved) using its transform. Is this the best way to go about the game type I’m designing?
Mison | 2020-02-03 23:07