How do I Select the following position

Get help using Construct 2

Post » Sun May 29, 2016 5:01 pm

Hi!! I have 20 spot positions with "Black Sprites", I need put on them in order other 20 "White Sprites"... When I click in any of the White Sprites I need these go to the first free Black Sprite, when I click in other White Sprite and these go to the next free White Sprite and continue until the end... I dont know how I can make this...

Thank You!!
Last edited by Ghaelito on Tue May 31, 2016 7:51 am, edited 1 time in total.
B
12
S
1
Posts: 23
Reputation: 760

Post » Sun May 29, 2016 5:43 pm

do you need them all to move, or just the one you click?

on click white sprite,

pick nearest black
pick by comparison, black.x</> white.x set white position to black

depends on direction they are moving
B
9
S
3
Posts: 113
Reputation: 1,009

Post » Mon May 30, 2016 5:46 pm

I just need move the clicked white sprite... Now Im solve with an variable with the first black position and in each click y add to the variable the thistance to the next back sprite... Not is the best solution but works for now... Thank You!
B
12
S
1
Posts: 23
Reputation: 760


Return to How do I....?

Who is online

Users browsing this forum: TRMG and 11 guests