Hi,
First in first out ( aka FIFO ):
this is a technic of dealing with the content of the array and how you deal with processing it:
so the first item you put in your array MUST be the first item you process and remove from your array.
let's say you add 3 values, in sequence, first you add A, then you add B, then C, you end up with:
[A,B,C]
the FIFO rules means that you must take A first, process it and delete it, you end up with:
[B,C]
so FIFO rules means: add value at the end of the array, but remove the first value always until array is empty.
now, the other variant is Last in, First Out( AKA LIFO)
[A,B,C]
with LIFO, I would take C first, ending up with
[A,B]
does that make more sense?
the FIFO rules means the first item you have added is of most importance, so for triggers in a level this make sense, your character is going through several coins, you add them as they come, but you treat them in order in which they were added.
Bye,
Jean