#nope
1 messages · Page 1 of 1 (latest)
soooo what am i supposed to do in this case
well, I don't know what your code is trying to do
but you need to have at least x elements in your array to get the element at index x-1
so basicly, my code is trying to switch between multiple items
its basicly like minecraft
I watched a tutoial that explainedme step by step the code.
then go through the tutorial again
it will not be helpful if you diverge significantly from what the tutorial is doing
i did check everything
i copied his every move
i even tried to copy paste his code
You can have completely correct code and still get an error if you're missing data
nope
i did everything he told me to do
that code does nothing to stop currentBlockIndex from going below 0
which will always cause an error
it also doesn't check if currentBlockIndex is too high
perhaps the tutorial will talk about this next