Yeah, indeed Global.
In my code the y is updated next frame and then drawn.
If i were to use your way i would have to split Update & Draw and i would have an additional For EachIn loop. This offcourse if with your way you want to update the y the same frame, if this is not the case then i don't see the difference between your way and my way.
In my code the y is updated next frame and then drawn.
If i were to use your way i would have to split Update & Draw and i would have an additional For EachIn loop. This offcourse if with your way you want to update the y the same frame, if this is not the case then i don't see the difference between your way and my way.