Array – Find Last index with value

Another array example created for a user on the Construct 2 forums.  This time it will find the last time a certain value appears in a 1D array and returns that index.  In the example the numbers are “0-5″ and it looks for the last index with a value of “0″.  But can be easily changed to suit your needs.

DOWNLOAD

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s