Hi
So I am storing items in an array and want the user to be able to cycle through by either clicking left or right. I am testing if the next value in the array is equal to 1 and, if so, setting a global variable to that y value. If not, it should skip to the next value in the array and test that, so on until we either find one with a 1 or get to the end of the array.
While I can cycle through objects no issue if the next in the array is 1, and can stop if the next is 0, I'm having all sorts of trouble skipping 0 values and testing the next one in line.
I believe I need to use a for loop here and use a testing variable to find the next available space, but to be honest, I'm struggling a bit with Construct's logic with this one. I've included a sample file to show what I have so far:
drive.google.com/open
Also a pic of my event sheet so far:
Thanks