It's a way of storing data like objects or values within a single variable.
An example of how it could be used in GS: You have 20 instances of a single actor indexed (like a book index, each one has a designated number) in an array. If you want certain instances to do some action like for instance change a color in one scene and then other instances to do something else in the next scene - an array would allow you to quickly call them up and apply the changes.
A visual representation of an array is like a table. Think of an excel sheet. That is basically an array. An array has 2 columns - one for the index and one for storing the values or objects. You have one object per row: One object has 1 index. So if you have 10 objects in an array - you have 10 rows.
Arrays however have interesting attributes. You can split them up, reorder them, add or subtract things to and from them. If you're clever - you can use arrays for all kinds of things within a game.
JamesZeppelin said: It just seems like it would be so much faster to google some of this stuff rather than post a new topic and wait for the best answer.
yes...but a search may give too much information and be more confusing... while a simpler explanation like @Snow gives is so much easier to understand and begin learning from.
Comments
An example of how it could be used in GS:
You have 20 instances of a single actor indexed (like a book index, each one has a designated number) in an array. If you want certain instances to do some action like for instance change a color in one scene and then other instances to do something else in the next scene - an array would allow you to quickly call them up and apply the changes.
A visual representation of an array is like a table. Think of an excel sheet. That is basically an array. An array has 2 columns - one for the index and one for storing the values or objects. You have one object per row:
One object has 1 index. So if you have 10 objects in an array - you have 10 rows.
Arrays however have interesting attributes. You can split them up, reorder them, add or subtract things to and from them. If you're clever - you can use arrays for all kinds of things within a game.
this thread almost duplicates what is in:
http://gamesalad.com/forums/topic.php?id=12555
MH
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left