Hey there. I attempted to make a very simple dialogue system where should I reach past the maximum available data in an array, the text will automatically become invisible. I thought I had done this correctly, but it seems it will not turn the text invisible or run that line of code at all. What have I done? Thanks.
It's a simple test, but even I am confused.
Condition is incorrect, should be system compare global variable Dialogue >= Array.width.
Thank you so much, I was sure that this was the correct condition.
Develop games in your browser. Powerful, performant & highly capable.
No problem, I can see where you were going with this, you just picked the wrong type of compare. The one you chose was comparing the actual value in the array at X=4 where instead you want to compare the variable Dialogue itself.