An iteration means the process of running a page inside the brain for one time. There are multiple brain tiles that can change how the brain iterates, but the default (a brain with nothing inside it) is infinite iterations for the game session (which means that the brain will run over and over an infinite amount of times while the player initiates a game session), and 30 iterations per second (which corresponds to 30 fps, or the brain running the page x 30 times in one game frame).
So iterations in game time equals the following:
Example: Game CameraEdit
An example is the camera, which we usually want to work while we play. This is why we leave the WHEN side empty.
Example: Initializing Player's Starting PositionEdit
Template:KodeShare In this example we set an initial position in X,Y,Z that the game will remember for the rest of the playthrough. the reason we do that is if we want the player to spawn back at the beginning when he gets killed, we can state When [is dead] Do [position]=[player starting position]
Duration 1 in framesEdit
Example: Kill CounterEdit
In this example, we use [duration][in frames] to increase our kill counter "dead enemies" by one when this enemy gets killed.
Example: Kill Counter using [Started to]Edit
Same as the previous example, but now we use [started to] to increase our kill counter "dead enemies".