objects/arrays Topic is solved
objects/arrays
I need 16 images on my gui to have an x value and a y value which can be manipulated and stored. would a object/array help with this? I have only a basic understanding of objects/arrays so I am not sure if I should list 32 variables or not.
Re: objects/arrays Topic is solved
Yes, you could have a 16-element array that has a pair of coordinates tied to the image name (associative array) or number (simple array). And each of the 16 elements of that array would have a 2-element array so you could access each by indicating .x or .y after identifying the element for a particular image.
Or if it's simpler for you, you could have a three simple arrays indexed from 1 to 16, one for each of the image name, x value, and y value.
Or if it's simpler for you, you could have a three simple arrays indexed from 1 to 16, one for each of the image name, x value, and y value.
Re: objects/arrays
@boiler that helps a lot, thanks!
Who is online
Users browsing this forum: jameswrightesq and 421 guests