We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I've got a question. I have a custom defined function called Projection, that will return an array with two values. The first value is the X-coordinate and the second value is the Y-coordinate. I want to know how to be able to use the returned X-coordinate in a calculation. Thanks!
Answers
Show your code
if the array is called a1 you want to use
a1[0] + 300
If you‘d return a
PVector
it would bepv.x + 300
There’s also a new forum
Without seeing your code my answer is a little generic
Also see reference and tutorials on arrays
similar version to the above version