Friends, I need your help. The question is elementary, and I'm a bit embarrassed to ask it, but I can't figure out the loops.
The situation is as follows. There are 20-30 active objects. At a certain moment, for 5-6 of them, the Alterable Value A will become 1, and then they should move to a specific coordinate on the X axis and line up in a row on the Y axis, with a distance of 20 pixels between each object. I've roughly shown what needs to be done in the drawing. I am hoping for your help.
Active objects sorting with loops
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
Hello evi1ove,
you could use a forEach loop, but you don't need to.
Assuming all the actives being a copy from the same object, you could do something like:
Always
------ ( child event) Alt. Val of active = 1
------------------> set active position x and y accordingly
-
Hello evi1ove,
you could use a forEach loop, but you don't need to.
Assuming all the actives being a copy from the same object, you could do something like:
Always
------ ( child event) Alt. Val of active = 1
------------------> set active position x and y accordingly
Thank you for your response!
I wrote it a bit confusingly; no, these are not copies. These are independent, separate objects. -
you could group them with a qualifier and use that qualifier in the event I wrote above..
-
you could group them with a qualifier and use that qualifier in the event I wrote above..
Yes, I tried grouping them. But in any case, the objects either move or all end up in the same position.
-
you may keep track of the latest y position used to line up the active. You may use another active for that, in order to store these values. Each time an active has alt. value = 10 then:
set that alt. value to 0 ( so that it will moved only obce )
set its position x and y where y is stored in an alt. value of another active.
add to that alt. value, say, 50.
done.
-
try this.
you need easing object
Please login to see this link.
-
you may keep track of the latest y position used to line up the active. You may use another active for that, in order to store these values. Each time an active has alt. value = 10 then:
set that alt. value to 0 ( so that it will moved only obce )
set its position x and y where y is stored in an alt. value of another active.
add to that alt. value, say, 50.
done.
Thx!
try this.
you need easing object
Please login to see this link.
Thank you very much!
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!