Become familiar with visual programming.
Program the Orca to swim using basic motion commands.
Learn event-driven programming concepts.
Use motion sensors in smartphones and tablets to sense motion events (tilt and shake) to steer the Orca.
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
When iPad is tilted forward
move 10 steps at 90 degrees
The coordinate system of Tickle is a 2-dimensional Cartesian coordinate system. The origin (0, 0) is at the center of the stage.
All characters starts with a direction of 0 degrees. The degrees increases counterclockwise from 0° which points to the right.
when iPad is tilted …
Add one of the Control blocks called if … then, and put it into the forever loop. This is a conditional block that runs the code inside it when the condition in the if … then block occurs (ie. evaluates to True). Otherwise, none of the code inside runs.
if … then
Add one of the Sensing blocks called touching edge? from category Sensing, and put it into the if ... then block. When Orca touches any edge of the stage screen, the condition in block if ... then evaluates to TRUE and the code inside runs.
if ... then
Add these blocks under the block say Hi! and play the project. You will discover that as the Orca swims around and touches an edge, it will say "Ouch!".
Make the Orca bigger when Orca is tapped on, and smaller when you shake the iPad.
Tip: The size of Orca can be changed using the block change scale by … %. To sense when the Orca is tapped on, use the When this character clicked
change scale by … %
When this character clicked
Event-driven programming is a computer science concept in which the flow of a program is determined by events such as sensor input, user actions (like touching the screen or tilting the device), and messages from other programs.
It is the dominant paradigm generally used in modern application like graphical user interfaces (GUI) and web-pages that performing certain actions in response to user input.
A simple way to think of it is "When something happens, do something". For example, "When it rains, open your umbrella."
: the blocks attached to this block start to execute after tapping the Play button.
:the blocks inside this block will execute forever until the stop button is tapped.
:The block will check its boolean condition, if the condition is true then the code inside this block will run.
:The block is in the Looks category. The block shows a speech bubble with text until an another say ... block runs.
: The block is in the Looks category. This block changes the character size by the specified percentage. The default character scale is 100%.
:These blocks are in the Events category. When the corresponding events occur, the scripts attached to these blocks will be executed.