Thanks for that @hardmanko - it does work (although the if/then would need to be arranged differently, so the screen is erased before the LOADING is shown). I was also thinking about something similar in the meantime, based on @hahakid's ofGetFrameNum() > 1
: my mistake was to set the string in draw()
, and then call the hogging function immediately afterwards - which doesn't allow the draw()
to complete and therefore no LOADING string was shown. So I thought that in draw()
, I should save the value of the current frame number, and otherwise set the LOADING string and let the draw()
continue so its rendered, and only in the next frame call the hogging function. However, you've solved it with a boolean, and works just as well.
Thanks for the help, guys - cheers!