Telafight
|
  |
| Joined: 25 Jul 2011 |
| Total Posts: 10466 |
|
|
| 12 Apr 2013 12:12 PM |
[edit] Event Listeners Now we're getting into the meat of scripting. Sure, the script knows where the brick is, but that's all. It can't do anything else. Now we're jumping into a listening event.
An event listener watches what's going on, and waits for an event to happen. When it does, it tells the script to do something. This is one important part of the script, otherwise you couldn't really make scripts wait for anything.
You still should have the script with the variable in it. We're going to make the script listen for being touched (the Touched event). Here's an example:
brick.Touched:connect(onTouch)
I typed in brick.Touched:connect(onTouch) and it did nothing special! What am I supposed to do? |
|
|
| Report Abuse |
|
|
| |
|
Ovro
|
  |
| Joined: 17 Mar 2013 |
| Total Posts: 6346 |
|
|
| 12 Apr 2013 12:13 PM |
Wrong forum , try script helpers or something liek that
nu i spent time to write this :( |
|
|
| Report Abuse |
|
|
Telafight
|
  |
| Joined: 25 Jul 2011 |
| Total Posts: 10466 |
|
|
| 12 Apr 2013 12:13 PM |
| I know this belongs in the Scripting forum, but that forum is dead. |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2013 12:14 PM |
Go too the scripting forum please
#_@ help meeeeee |
|
|
| Report Abuse |
|
|
Telafight
|
  |
| Joined: 25 Jul 2011 |
| Total Posts: 10466 |
|
|
| 12 Apr 2013 12:15 PM |
| Grr.... Now I'm sure not to get a response. |
|
|
| Report Abuse |
|
|
Telafight
|
  |
| Joined: 25 Jul 2011 |
| Total Posts: 10466 |
|
| |
|
Telafight
|
  |
| Joined: 25 Jul 2011 |
| Total Posts: 10466 |
|
| |
|
Telafight
|
  |
| Joined: 25 Jul 2011 |
| Total Posts: 10466 |
|
| |
|