Page 113 - KEC Khaitan C4 Flipbook
P. 113
o Players must collect a torch to explore.
3. Navigation Logic:
Use conditional statements to check if the explorer has the necessary item (e.g.,
"If player has torch, allow cave entry").
5 . Program Character Controls
Movement:
o Use arrow keys for movement.
o Code Example:
when [right arrow] key pressed
change x by 10
Interaction with Objects and Animals:
o Press "Spacebar" to interact.
o Code Example:
when [space] key pressed
if <touching [Peacock]> then
broadcast [Peacock Interact]
6 . Add a Progress Tracker
Track Progress:
o Create a Progress Variable.
o Increase progress after completing tasks (e.g., crossing the river).
o Display progress on screen.
7 . Add Sound Effects and Animations
Sound Effects:
o Add animal sounds (peacock call, tiger growl).
o Add environmental sounds (river flow, cave echoes).
Animations:
o Make the Peacock dance and Tiger pace.
8 . Add a Timer for Challenge Mode
Create a Timer Variable:
o Name the variable "Time Left"
o Decrease time as the game progresses.
o End the game if the timer reaches 0.
Code Example for Timer:
when green flag clicked
Storytelling and Scene Transitions In Scratch 111

