Type: Game Mechanic Brain
Level: 3 star
Description: This brain is designed to link you to another game level. When the player interacts it starts a timer which fades out the world you are in and loads your new one. This brain does not work correctly until you add a linking level to its brain.
Note: Since shutdown you cannot link to Community Games so the first page you come to when adding a link will be completely blank. Click on Change feed. It takes a while, but it should give you the option of linking to My Worlds. You can link to any game level here. Please note that when in test mode if you load the new level that is what you will access in test mode when you select edit again, not your original level , so make sure you save before you test any level that level links.
- WHEN [detect][player][and][not][has power] DO [say][text: Interact with this…]
- WHEN [interacted] DO [toggle][has power]
- WHEN [has power]
- …WHEN [countdown timer][0.9] DO [pace][equals] // freezes all characters
- …WHEN [detect][player]
- …/…WHEN [duration timer]
- …/…./…WHEN DO [display][text:Leaving this World][screen bottom centre][x large font]
- …./…./…WHEN DO [display meter][blue][timer seconds remaining][max][screen bottom center]
- …/….WHEN [countdown timer] DO [fade]
- …./…/…WHEN [countdown timer]
- …/…./…./…WHEN DO [campaign][objset:send objects][equals][player][plus][it][allies][objects closer than] // This determines what objects are also sent to the new level (in this case the player and any allies standing within 10 meters plus any objects in the send objects set).
- …/…/…/….WHEN DO [go to world][your level here]
- …/…./…/….WHEN [display][text:Opps Which world…][screen center][x large font] // This only works if you havent chosen a level to link to in the brain. If you have added one you can safely remove this line.
- …/…./…/….WHEN [countdown timer] DO [power off]
- …/…WHEN [else] DO [power off]
- WHEN [no longer][has power] DO [pace][equals]
- WHEN [once][previous world]
- …WHEN [for each of][campaign][objset:send objects] DO [create][it]