Anti Gravity Chocolate

Type: Prop brain
Level: not in gallery
Pages: 1
Description: Found in the Anti Gravity Chocolate. The object appears to float up and down. When the player bumps it it heals a quarter of max health of the player and disappears.

Kode

  1. WHEN [once] DO [collidable][equals][false]
  2. WHEN DO [turn][slowly]
  3. WHEN [countdown timer][2][loop] DO [toggle][boolvar:Move up] // this controls the timing of the up and down movement
  4. WHEN [boolvar: move up] DO [move][in direction][world up][at speed][0.015][with flying]
  5. …WHEN [else] DO [move][in direction][world down][at speed][0.015][with flying]
  6. WHEN [bump][player]
  7. …WHEN [it][health][less than][it][max health]
  8. …/…WHEN DO [heal][it][0.25][multiplied by][it][max health]
  9. …/…WHEN DO [play fx][fx:Heal][on][it]
  10. …/…WHEN DO [destroy]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: