View Single Post
  #103  
Old 05-07-2011, 05:31 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Please work on shortening your posts, it's tempting to just ignore them because they're so laborious to read.

The degree/radians conversion was just an example of a standard function built into the language.

The reason you prefix it with this is because it is a function of that object. When you use this as the prefix for a variable, it is set only for that object (that script). You don't have to use this as a prefix for variables, but you should since it clearly shows which object the function belongs to—it's only natural since variables require the prefix. As WhiteDragon said, don't worry about this yet. Focus on understanding variables and functions, then work on object orientation.
__________________
Reply With Quote