Sign in to follow this  
ipop

Duplicate Container

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.