Jump to content

Duplicate Container


ipop
 Share

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.

 

Link to comment
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.

Link to comment
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 ...

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...