I want to create a loop that runs in the background, so that other processes are not affected.
In my case I've replaced the default ingame menu with a picture based menu.
Issue is: I want the background image of this menu to change after a few seconds.
Problem: Currently I can get the changing BG image working, but then I can't use the functionality of the menu anymore, because the loop for the changing BG image is still running. And when I break the loop I can use the menu, but the BG image does not change anymore. Is there a way to make the changing BG image somehow in the background, so it does not wait for this loop to be finished?
I hope I was able to make clear what I mean ^^'
In my case I've replaced the default ingame menu with a picture based menu.
Issue is: I want the background image of this menu to change after a few seconds.
Problem: Currently I can get the changing BG image working, but then I can't use the functionality of the menu anymore, because the loop for the changing BG image is still running. And when I break the loop I can use the menu, but the BG image does not change anymore. Is there a way to make the changing BG image somehow in the background, so it does not wait for this loop to be finished?
I hope I was able to make clear what I mean ^^'