Difference between revisions of "Talk:Getting started with LSL"

From Second Life Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Is there a reason the code isn't indented? I badly whitespaced code makes it hard to sit still; like walking into someones house and finding a picture hanging crooked on the wall. Maybe whitespace should be mentioned somewhere in the article too... [[User:Strife Onizuka|Strife Onizuka]] 09:41, 1 February 2007 (PST)
;Question: Is there a reason the code isn't indented? I badly whitespaced code makes it hard to sit still; like walking into someones house and finding a picture hanging crooked on the wall. Maybe whitespace should be mentioned somewhere in the article too... [[User:Strife Onizuka|Strife Onizuka]] 09:41, 1 February 2007 (PST)


Moved the page, it's all the rage to have spaces in names. As to the capitalization of the name thats not my can of worms. [[User:Strife Onizuka|Strife Onizuka]] 09:46, 1 February 2007 (PST)
;Answer: I didn't want to touch the indentation until we got syntax highlighting, (which is here now, wow took 10 months) I'll clean these up -- [[User:Blueman Steele|Blueman Steele]] 05:50, 17 December 2007 (PST)


* Code sample doesn't match what the article is saying


"The code above contains 2 comments, 1 state, 2 events and 2 functions. Lets look at them individually."
;Note: Moved the page, it's all the rage to have spaces in names. As to the capitalization of the name thats not my can of worms. [[User:Strife Onizuka|Strife Onizuka]] 09:46, 1 February 2007 (PST)


Where's the two comments?


Fixed it, I had the idea of commenting the code but decided instead to show it in its original form. -- [[User:Blueman Steele|Blueman Steele]] 05:46, 17 December 2007 (PST)
;Question: Code sample doesn't match what the article is saying. "The code above contains 2 comments, 1 state, 2 events and 2 functions. Lets look at them individually."  Where's the two comments?


== RESET SCRIPTS IN SELECTION" etc. is greyed out ==
;Answer: Fixed it, I had the idea of commenting the code but decided instead to show it in its original form. -- [[User:Blueman Steele|Blueman Steele]] 05:46, 17 December 2007 (PST)


How do I activate these options ?
 
;Question: RESET SCRIPTS IN SELECTION" etc. is greyed out How do I activate these options ?
 
;Answer: Could be a number of things including permissions or if you have the right object (or sub object selected) [[User:Blueman Steele|Blueman Steele]] 05:54, 17 December 2007 (PST)
 
 
;Question: In the On/ Off example, shouldn't it be touch_end, rather than touch_start? - [[User:Kessalta Blackburn|Kessalta Blackburn]] 16:55, 28 November 2009 (UTC)
 
;Answer: That depends on your preference. Consider the following scenario: You click the left mouse button, hold it clicked for 5 seconds, then release it. The moment you start to click it, [[touch_start]] is triggered, for the next five seconds, [[touch]] is triggered repeatedly over and over again, when you release the mouse button, [[touch_end]] is triggered.<br>Generelly, people expect inworld items to react on [[touch_start]], since it's commonly used (maybe because it's part of the [[Hello Avatar|default script]]). But you can also script your device to react on [[touch_end]], when it is what you prefer. --[[File:Zai_signature.png|45px|link=User:Zai Lynch]] <sup><small>([[User talk:Zai Lynch|talk]]|[[Special:Contributions/Zai Lynch|contribs]])</small></sup> 18:45, 28 November 2009 (UTC)

Latest revision as of 10:45, 28 November 2009

Question
Is there a reason the code isn't indented? I badly whitespaced code makes it hard to sit still; like walking into someones house and finding a picture hanging crooked on the wall. Maybe whitespace should be mentioned somewhere in the article too... Strife Onizuka 09:41, 1 February 2007 (PST)
Answer
I didn't want to touch the indentation until we got syntax highlighting, (which is here now, wow took 10 months) I'll clean these up -- Blueman Steele 05:50, 17 December 2007 (PST)


Note
Moved the page, it's all the rage to have spaces in names. As to the capitalization of the name thats not my can of worms. Strife Onizuka 09:46, 1 February 2007 (PST)


Question
Code sample doesn't match what the article is saying. "The code above contains 2 comments, 1 state, 2 events and 2 functions. Lets look at them individually." Where's the two comments?
Answer
Fixed it, I had the idea of commenting the code but decided instead to show it in its original form. -- Blueman Steele 05:46, 17 December 2007 (PST)


Question
RESET SCRIPTS IN SELECTION" etc. is greyed out How do I activate these options ?
Answer
Could be a number of things including permissions or if you have the right object (or sub object selected) Blueman Steele 05:54, 17 December 2007 (PST)


Question
In the On/ Off example, shouldn't it be touch_end, rather than touch_start? - Kessalta Blackburn 16:55, 28 November 2009 (UTC)
Answer
That depends on your preference. Consider the following scenario: You click the left mouse button, hold it clicked for 5 seconds, then release it. The moment you start to click it, touch_start is triggered, for the next five seconds, touch is triggered repeatedly over and over again, when you release the mouse button, touch_end is triggered.
Generelly, people expect inworld items to react on touch_start, since it's commonly used (maybe because it's part of the default script). But you can also script your device to react on touch_end, when it is what you prefer. --Zai signature.png (talk|contribs) 18:45, 28 November 2009 (UTC)