ipop Posted July 22, 2013 Share Posted July 22, 2013 Hi All I have a container holding sprite tiles.I want to loop the screen. so im duplicating the container and displaying a second container on the edges of the screen then turning the visibility on and off when either container leaves the screen completely. IS there a better way of doing this?Whats the best/quickest way of duplicating a container.How do you move the duplicate container separately to the other container. Quote Link to comment Share on other sites More sharing options...
xerver Posted July 22, 2013 Share Posted July 22, 2013 Can you not move the tiles that have exited the view to the other side? For example, when panning left tiles on the right of the screen exit the viewable area, when that happens move that column of sprites to the far left of the object so that they will come back into view later as the camera continues to pan. No cloning necessary. Quote Link to comment Share on other sites More sharing options...
ipop Posted July 22, 2013 Author Share Posted July 22, 2013 Can you not move the tiles that have exited the view to the other side? For example, when panning left tiles on the right of the screen exit the viewable area, when that happens move that column of sprites to the far left of the object so that they will come back into view later as the camera continues to pan. No cloning necessary. theres a point where the tile is visible on both sides as its a single screen ... Quote Link to comment Share on other sites More sharing options...
xerver Posted July 22, 2013 Share Posted July 22, 2013 theres a point where the tile is visible on both sides as its a single screen ... Then have a small buffer around the edges where a couple of tiles are duplicated, but I still feel that moving sprites around as you pan is the way to go here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.