Tynker Running Game – Step-by-Step Guide for Beginners
Game Objective
-
The actor runs continuously from left to right
-
Press SPACE to boost speed
-
Touching the green equalizer keeps the runner moving
Elements Used in the Game
Actors
-
Actor 1 – Player runner
-
Actor 2 – Opponent runner
Game Objects
-
Green Equalizer – Track boundary
-
Red-Green Equalizer – Finish line
-
Background – Running lanes
Step-by-Step Coding Guidelines
Step 1: Set Up the Actor Movement
Code Logic:
Explanation:
-
foreverkeeps the actor running continuously -
set rotation style left-rightprevents upside-down rotation -
animate Side Rungives a realistic running effect -
waitcontrols speed (lower value = faster)
Step 2: Add Boost Using Keyboard Control
Code:
Explanation:
-
Each time the space bar is pressed, the runner gets a speed boost
-
Makes the game interactive and fun
Tip: You can change pixels to adjust difficulty.
Step 3: Lane Control Using Touch Detection
Code:
Explanation:
-
Keeps the runner aligned in the lane
-
Prevents the actor from going out of bounds
-
Introduces collision-based direction control
Step 4: Declare the Winner
Code:
Explanation:
-
The red-green equalizer acts as the finish line
-
First actor to touch it wins
-
Adds a clear goal to the game
Gameplay Instructions (For Players)
-
🏁 Game starts automatically
-
🏃 Actors run continuously
-
⌨ Press SPACE to boost speed
-
🟢 Stay in your lane
-
🔴 Touch the finish line to win






Comments
Post a Comment