can someone review this capx and help me with swap function.

Get help using Construct 2

Post » Sat Apr 22, 2017 6:31 pm

Message: mrline can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
this is a capx demo of swap 4 squares with 4 squares : https://goo.gl/IYbK8k

someone made it a few days ago. the mechanics are : first click 4 squares ( a , b , c , d ) these squares are selected. then click 4 other squares ( d , e , f , g ) now the first 4 squares swap positions with 4 other squares. in this case, square a swaps positions with square d ... square b swaps with square e. and so with others.

iam trying to get the same function but this time not with 4 squares but 3. example. first select 3 squares then select 3 other squares and then they swap positions. can someone who understands the mechanics modify the capx ? thanks
B
6
S
3
Posts: 40
Reputation: 698

Post » Sat Apr 22, 2017 8:55 pm

at event 2 change array size to (6, 2, 1) then look at event 6 and change value 4 with 3. Go to event 8, change value 8 with 6. Last go to event 10; change condition repeat 8 times with 6 times then change set mindex value from (loopindex+4)%Array.Width to (loopindex+3)%Array.Width.

There you go.
ImageImage
B
102
S
45
G
22
Posts: 772
Reputation: 21,493

Post » Sun Apr 23, 2017 6:40 am

Thanks
B
6
S
3
Posts: 40
Reputation: 698


Return to How do I....?

Who is online

Users browsing this forum: Alvaro2 and 16 guests