I have a bit different problem. I made an experiment for my upcoming game. I wanted to create chain between 2 objects. Also, I wanted that the amount of chains is adjustable AND chains are divided in equal distance between two objects. I hope that makes sense.
Here is a screenshot what I'm talking about:
Problem is, I don't understand how the math works in the event. Odd, ehh? I can create something but I don't understand it.
Here is a screenshot from my code:
I'm referencing to line 3 and precisely this: chain: set lerpNB to ---> (1 / StartSprite.chainAmount) * loopindex
Here is capx -file if somebody want to check the code in Construct2.
I think everybody knows that first you need to understand the problem, before you can solve the problem. I can understand both but I can't understand why results works. In particular in this case.
So, if somebody could explain to me why my code (line 3) is working, I would really appreciate it.