Touch Sensor

Revision as of 18:15, 14 May 2024 by Nikitaivanov (talk | contribs) (Created page with "{{Block |image=Touch_Sensor.png |type=s |input1={{Port|e|Before}} |output1={{Port|e|Touched}} |output2={{Port|n|Screen X}} |output3={{Port|n|Screen Y}} |output4={{Port|e|After}} }} Touch Sensor allows to get user input from screen touch or a mouse. == Settings == thumb|Touch Sensor settings The touch sensor has two settings, which can be changed by selecting the script and tapping the buttons that appear in the bottom right corner....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Touch Sensor allows to get user input from screen touch or a mouse.

Touch Sensor
Touch_Sensor.png
TypeScript block
ColliderNone
Ports
Inputs Before
Outputs Touched
Screen X
Screen Y
After

Settings

 
Touch Sensor settings

The touch sensor has two settings, which can be changed by selecting the script and tapping the buttons that appear in the bottom right corner.

The first setting has three options:

  • Touching: The touch sensor will trigger every frame during touching
  • Begins: The touch sensor will trigger once when touching begins
  • Ends: The touch sensor will trigger once when touching stops

The second setting changes how many fingers have to be touching the screen to trigger the touch sensor.