Please help with THREADMILL-LIKE CAPX

Get help using Construct 2

Post » Fri Aug 26, 2016 11:05 am

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 ??? ;) ;) ;)

Link:

http://s000.tinyupload.com/?file_id=700 ... 8010198810
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093

Post » Fri Aug 26, 2016 2:32 pm

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
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Sat Aug 27, 2016 6:22 am

blackhornet wrote: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.
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests