swap the positions?

Discussion and feedback on Construct 2

Post » Sat Apr 02, 2016 4:29 am

to swap the positions of random way objects in specific fields.

please please. :shock: :o
B
8
S
2
G
1
Posts: 20
Reputation: 1,051

Post » Sat Apr 02, 2016 8:19 am

Can you be a bit more specific about what you want to achieve?

Also, this topic should be in the How do I section: how-do-i_f147
B
136
S
33
G
17
Posts: 1,560
Reputation: 20,775

Post » Sat Apr 02, 2016 7:56 pm

Thanks for helping @glerikud
B
8
S
2
G
1
Posts: 20
Reputation: 1,051

Post » Sun Apr 03, 2016 9:30 pm

Not very specific but I think the logic should go something like this;

1) Get coordinates of object 1 and save as value
2) Get coordinates of object 2 and save as value
3) Destroy object 1
4) Create new object 1 in object 2 coordinates
5) Destroy object 2
6) Create new object 2 in coordinates of object 2
Download Pistons:

Image
B
23
S
5
G
8
Posts: 49
Reputation: 4,651

Post » Sun Apr 03, 2016 10:44 pm

Thank you for your help. I ended up studying arrays and it worked. @famousgnu6
B
8
S
2
G
1
Posts: 20
Reputation: 1,051


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests