B
Brackleforth
Guest
Hello,
I'm trying to change a variable from false to true for all instances of an object.
However, I need the values to change one at a time according to which is the closest to the player object. So, the nearest object changes, then the second-nearest, then the third-nearest, etc, all in one process. Is there a way to select objects, in a for loop using instance_nearest maybe, and adjust their variables one at a time like that? I feel like this should be possible, but I can't visualize what to do.
Thanks!
I'm trying to change a variable from false to true for all instances of an object.
However, I need the values to change one at a time according to which is the closest to the player object. So, the nearest object changes, then the second-nearest, then the third-nearest, etc, all in one process. Is there a way to select objects, in a for loop using instance_nearest maybe, and adjust their variables one at a time like that? I feel like this should be possible, but I can't visualize what to do.
Thanks!