Rotating Satellite Dish

Type: Assembly Brain
Level: not in gallery
Pages: 1
Description: Found in the Rotating Satellite Dish assembly. This rotates an object with a speed up and slow down mechanism when you interact to turn it on and off.

Kode

  1. WHEN [once] DO [#rotation speed][equals][1]
  2. WHEN DO [yaw][5][multiplied by][#rotation speed]
  3. WHEN [has power] DO [#rotation speed][increment by][0.02]
  4. …WHEN DO [play sound][sound:High Tech Satellite Dish Loop]
  5. …WHEN [else] DO [#rotation speed][decrement by][0.02]
  6. WHEN DO [#rotation speed][equals][clamp][#rotation speed][min][0][max][1]
  7. WHEN [interacted] DO [toggle][has power]

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: