Hey everybody,
I am working on a cloner of sorts to spawn an array of actors.
I have the basic concept in my head ready, here is an example of a basic array of 4 objects with 500-units gap in between,
they spawn across:
0,0,0
0,500,0
0,1000,0
0,1500,0
I need help regarding the math of keeping the array centered to the middle of the screen, meaning the Y values should be:
-750
-250
250
750
Or another example an array of 5 with gap of 1000, should be
-2000
-1000
0
1000
2000
Instead of how it is right now which is 0,1000,2000,3000,4000
I’m sure there is a way to calculate it automatically but I couldn’t figure it out.
Thanks in advance
Elad.