If you have a game or simulation or some other project that involves switching to another page “all by itself”, you will probably want the action to start automatically as soon as the second page opens.


We will consider the simplest case: you have two pages, page1 and page2 and all the action on both pages is performed by clickable turtles.


Normally, you would switch your action to page2 by including page2 command in your procedure. Use

page2

everyone  [clickon]

instead. You’ll see that as soon as page2 opens, all your turtles on page2 start acting. 


It may be a good idea to “turn off” the turtles on page1, though:

everyone [clickoff]

page2

everyone  [clickon]


When you address to turtles using
everyone command, it refers to the turtles on current page only.