creating an infinite looping menu

  • I need to create an infinite looping menu. I already made a simple menu that you can click, to move it left or right.

    But now I need it to loop infinite. So I move from slide 2 to slide 1. I need to remove the last layer (4) and make it the first:

    4 [1] 2 3

    Moving back to two, removes the first, and adds it to the last

    1 [2] 3 4

    Move to 3:

    2 [3] 4 1

    to 4:

    3 [4] 1 2

    So going left, removes the last and adds it to the first. Going right, removes the first and adds it as last.

    Any tips Klaus or any one else? *confused*

  • Got it working, with a little bit of faking I added the last layer on top, and the first on the bottom. Then after it slided I checked if the current_slide was 0 or 12, and corrected the x without sliding to 1 or 11.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!