Become familiar with visual programming.
Program the Orca to swim using basic motion commands.
Learn coordinate system with direction (0-360 degrees) and distance.
Understand sequential execution of commands, conditionals (if-then), and variables.
Open Tickle app and go over the welcome tutorial that shows you how to drag and drop coding blocks. You can replay the tutorial in Settings -> Show Introduction as needed.
Settings -> Show Introduction
If you don't already have a Orca project open, create a new one by tapping "+ New Project" in "MY PROJECTS". Choose the template with the name "Orca".
When starting to play
move 10 steps
We use a variable to remember the direction the Orca should swim in. In computer science, a variable is a symbolic name associated with a value and whose associated value may be changed.
To add a new variable named "Direction" in this project, tap the + Add Variable button and type in the variable name "Direction".
+ Add Variable
set ... to ...
Here we make use of the conditional block called if ... then, and put it into the forever loop. When the condition in the if ... then block occurs (ie. evaluates to TRUE), then the code inside that block runs; otherwise, none of the code inside runs.
if ... then
Then we make use of one of the Sensing blocks called touching edge?, and put it inside the if ... then block. When the Orca touches an edge of the stage screen, the condition in block if ... then returns true and the code inside it runs.
Direction * -1
set Direction to (Direction * -1)
move (Direction * 10) steps