Jump to content
Stray Fawn Community

Sensors and Logic: Unofficial Guide


Devin923

Recommended Posts

This thread is here to help users understand how to use the Sensors and Logic blocks.

 

Below is a list of the blocks types, and with then are some examples of common use cases to understand how to use them.

A more advanced thread will be created to explain more complex logic and sensor setups.

 

Currently this is under development please check back for more updates.

Once the base post is completed feel free to leave your comments and updates to examples and I will be sure to update the main thread to reflect different use cases and examples.

 

--------------------------------------------------------------

 

Button:

  • Activates the output key

 

The button is used to permanently activate a key press, "W".

In this case our thruster will now propel us forward, without us having to press, "W" to activate the thruster.

 

Common Uses:

  • Activate Boosters
  • Activate Weapons
  • Activate Mining Lasers
  • Activate Decoupler for Satalite

 

drone_button.jpg

button_w.jpg

thruster_w.jpg

 

Switch:

The Switch is just like the Button, except when toggled the button activate key will be turned on or off.

The switch by default is turned off.

 

In the drone example below we use a basic thruster activated by the, "W" key.

The Switch will toggle the thruster to activate when the Left Mouse button is clicked.

When the Left Mouse is clicked again it will disable the thruster.

 

Common Uses:

  • Activate / Disable Shields
  • Activate / Disable Weapons
  • Activate / Disable Mining Lasers

 

drone_switch.jpg

switch_mouse_w.jpg

thruster_w.jpg

 

Impulse Giver:

The Impulse Giver, acts just like the Button.  But instead of pressing the button all the time it is pressed on an interval and for a certain amount of time.

There are two setting on the Impulse Giver:

  • Active Time: How long it will hold down the button.
  • Pause Time: How long it takes between button pressesHow long it will hold down the button.

 

In the example below we use a COLOR LED set to activate when we press, 1.

But when we introduce the Impule Giver and have it activate, '1' with the Active time of 1 second and Pause time of 1 second.

Our LED will stay lit for (Active Time) 1 second, and then turn off (Pause Time) for 1 second.

 

Common Uses:

  • Used to turn a Motorized Hinge
  • Activate LED, to be used as a signal light

 

drone_impulse_giver.jpg

impulse_giver_1.jpg

color_led_1.jpg

 

Logic Connector:

  • Provides a wireless connection to the main part.
  • Key events will be forwarded.

Logic Splitter:

  • Cuts the connection to the main part.
  • Key events will not travel through this.

 

Color LED:

 

Sensors:

Distance:

Speed:

Directional:

 

Gates:

IF:

  • Activates the output key if the input key IS PRESSED

NOT:

  • Activates the output key if the in input key IS NOT PRESSED

AND:

  • Activates the output if BOTH keys are PRESSED

OR:

  • Activates the output key if ONE of the input keys are PRESSED

NAND:

  • Activates the output key if ONLY ONE of the input keys OR NO key is PRESSED

XOR:

  • Activates the output key if ONLY ONE of the input keys are PRESSED

  • Paw up 1
Link to comment
Share on other sites

  • 2 weeks later...

I really like the idea of a guide - keep up to date on things. Especially for any who want to get a better grasp of things as more features come in (I'm sure more tutorials will be made in time as they have a very small one already in the Demo)

Love the formatting, organization, and effort you put into this.

 

I dunno if a forum post (unless it's pinned somewhere?) would be the best ultimate location for such knowledge - I saw someone made an unofficial Wiki for the Game: http://nimbatus.wikia.com/wiki/Nimbatus_Wiki

 

What are you thoughts on using something like that?  (besides the plethora of ads that show up. >_> )

I know this is pre-alpha so EVERYTHING will change - but still having some comprehensive lists together is awesome to think about early on.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...