Updated Text Script.md (markdown)
commited
commit
7510f0f3ccf2affad9aa33c383e1c123dffb91c8
... | ... | @@ -236,11 +236,23 @@ Loop(num start = 0, num end = 0) { |
236 | 236 | } |
237 | 237 | |
238 | 238 | # Sensors |
239 | TouchSensor('touching' , '1st') { |
|
239 | TouchSensor('1st').touching { |
|
240 | 240 | //Outputs |
241 | 241 | out.screen.x |
242 | 242 | out.screen.y |
243 | 243 | } |
244 | #touch sensor has multiple extensions and fixed inputs: |
|
245 | ||
246 | # Extensions |
|
247 | .touching |
|
248 | .begins |
|
249 | .ends |
|
250 | ||
251 | #Inputs |
|
252 | "1st" or "First" |
|
253 | "2nd" or "Second" |
|
254 | "3rd" or "Third" |
|
255 | ||
244 | 256 | |
245 | 257 | Collision(obj mainObject) { |
246 | 258 | //Outputs |