We are about to switch to a new forum software. Until then we have removed the registration on this forum.
It would be cool if there is a way to make a loading screen for my android apps, like most apps have.
The simplest way to achieve this task is to display the loading screen in setup()... load everything that you would have loaded in setup() on frame #1... and then start everything normally from frame #2 on. Example:
setup()
void setup() { //Display loading screen } void draw() { if(frameCount <= 1) { //Load everything } else { //Regular draw() } }
So simple thanks, I always forget about the useful frameCount variable!
Answers
The simplest way to achieve this task is to display the loading screen in
setup()
... load everything that you would have loaded insetup()
on frame #1... and then start everything normally from frame #2 on. Example:So simple thanks, I always forget about the useful frameCount variable!