We are about to switch to a new forum software. Until then we have removed the registration on this forum.
When I open another random app while mine is running in the background weird things happen for instance rectMode randomly changes to anything but
rectMode(CENTER); (which is what I actually want). At first I thought that perhaps somewhere in the code I call
rectMode(CORNER); for instance and then I switch apps at which point the code cuts of and returns to the start of draw with rectMode set to left corner and that's why every rect goes haywire but this can't be the case since In my code I only call rectMode once and that is in the setup like this
rectMode(CENTER); so I don't see why this happens
I thought I could just easily detect when my app has been put in the background and close it or something or just reset the "settings" like rectMode when the app was called out of the background. But this turns out to be harder than I thought so I was hoping someone could tell me how to detect when the app has been moved to the background or a way to stop it from glitching when in the background