Night Vision

By LadylexUK

When playing 3rd person or 1st person shooters you often have the ability to put on night vision goggles so you can see better in the dark. This can easily be achieved in project spark. Set your sky box to Night Clear.

  1. WHEN [once] DO [boolvar:night vision][equals][false]
  2. WHEN [night vision] DO [brightness][increment by][10]
  3. …WHEN DO [display][icon:Join Frame][colorvar: bright green][screen center][scale][20]
  4. WHEN [not][boolvar:night vision]
  5. …WHEN [sky][equal to][Night Clear]DO [brightness][equals][-10]
  6. …/…WHEN [else] DO [brightness][equals][0]
  7. WHEN [dpad][down][pressed] DO [toggle][boolvar:night vision]

When your player presses down on the Dpad they put on their night vision goggles so they can see in the dark. For an equipped skill, create this brain in a logic cube and use add brain when they pick up their night vision ability (a helmet or gas mask for example).

 

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: