Please help with THREADMILL-LIKE CAPX

  • Hey guys; this is a problem I've been struggling with for days now. I managed to create a pretty good THREADMILL-LIKE effect with some sheets as you will see in the CAPX below. I made a manual wrap as you will notice to address the non-uniform thicknesses of the sheets so that they SHOULD be in the same relative locations with respect to each other after the player swipes.

    If you try the CAPX however, after several attempts of swiping, you'll notice first, sheets of the same type appear to gather together and later sheets of All types somehow appear to gravitate at a single point in the x-axis. I've tried everything from adding a For loop to attempting to address the positioning of each sprite itself (using the Self.X function) but the end results are the same.

    Now my goal is first to get this threadmill effect working then to procedurally generate random sheets of different thicknesses that are spread 0 pixels apart and not overlapping. As of right now I have no idea how I'm going to implement the latter. Any recommendations ??? <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    Link:

    http://s000.tinyupload.com/?file_id=700 ... 8010198810

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You are checking relative positions, but moving to absolutes. You need to offset the position, to keep it's same relative position.

    http://www.blackhornettechnologies.com/ ... s_BHT.capx

  • You are checking relative positions, but moving to absolutes. You need to offset the position, to keep it's same relative position.

    http://www.blackhornettechnologies.com/ ... s_BHT.capx

    Alright thanks! I'll be testing this soon as I download c2 latest version.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)