Updating global variables inside draw() function

Problem solved, It was due to some variables not having a value assigned to them, that’s why the program would block. The array cell which were being called weren’t initialized at all.

1 Like