Skip to content

Commit

Permalink
Update bunny2.script
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Dec 10, 2018
1 parent 1b3ef73 commit 03388d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/basics/message_passing/bunny2.script
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ end

--[[
1. Tell the engine that we want to receive input.
2. Store a flag in the current script component instance that tells us if the ship is moving or not.
3. If user clicked and the ship is not moving.
2. Store a flag in the current script component instance that tells us if the bunny is moving or not.
3. If user clicked and the bunny is not moving.
4. Send a message to this script component ("#" is shorthand for that) saying "go to" and the clicked position
as part of the message data.
5. If a "go to" message is received, set the speech label text and then animate the position of the current
game object ("." is shorthand for that) to the position send in the message data. When the animation is
done the function `landed()` is called.
6. When `landed()` is called on animation complete, set the label text, then calculate a position on the
opposite of the screen and send a message called "go to" to the component "script" in the game object
"pink ship". Supplied with the message is the opposite position as message data.
"bunny 1". Supplied with the message is the opposite position as message data.
7. If someone sends us a message called "i'm there" we react by just changing the speech label text.
--]]
--]]

0 comments on commit 03388d6

Please sign in to comment.