I was wondering if it was performance intensive to continuously read values from an array?
I have a lot of functions that sets a sprite's position, angle, opacity to different values for different if conditions. This fills up the even sheets with a lot of actions.
I was wondering why not I just save the position angle opacity values in an array, and call another function to read the values from the array and set it into the function that changes the sprite's various attributes.
Would this method be slower than just directly setting the values and would it be a burden on performance?