How can I make a loading screen in android mode?

edited November 2013 in Android Mode

It would be cool if there is a way to make a loading screen for my android apps, like most apps have.

Answers

  • Answer ✓

    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:

    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!

Sign In or Register to comment.