Browse Source

Update controller.script (#234)

To fix `ERROR:GAMEOBJECT: Component '/level/ground/controller#controller' could not be found when dispatching message 'set_speed' sent from main:/level/controller#controller`
If we follow the tutorial we create a script and name it `ground.script`.
Daniel Tereshchenko 3 years ago
parent
commit
c09173e1a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/en/tutorials/runner.md

+ 1 - 1
docs/en/tutorials/runner.md

@@ -424,7 +424,7 @@ We should also add a controller game object with a script component to the level
     go.property("speed", 360) -- <1>
 
     function init(self)
-        msg.post("ground/controller#controller", "set_speed", { speed = self.speed })
+        msg.post("ground/controller#ground", "set_speed", { speed = self.speed })
     end
     ```
     1. This is a script property. We set it to a default value but any placed instance of the script can override this value, directly in the properties view in the editor.