Treasure Chest

Type: Prop Brain
Level: not in gallery
Pages: 1
Description: This is found in the treasure chest prop. It creates a coin which rises from the chest, then the chest is destroyed.


  1. WHEN [not][has power]
  2. …WHEN [interacted] Do [power on] //so when player interacts with it the power is turned on and the chest opens
  3. WHEN [has power]
  4. …WHEN [once] DO [objvar:treasure][equals][create][obj:Coin][at position][position] // creates a coin
  5. …/…WHEN DO [play fx][fx:Energy Burst B]
  6. …WHEN DO [objvar:treasure][move][in direction][world up][with flying][at speed][0.025] // raises the coin out of the chest
  7. …WHEN [countdown timer][2]
  8. …/… WHEN DO [play fx][fx:Poof]
  9. …/… WHEN DO [destroy] // destroys the chest


See Tutorials about Treasure Chests



Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: