Professional Documents
Culture Documents
GSPo 2
GSPo 2
You NEED to have the 1st tutorial COMPLETED into order to follow this one. BEFORE YOU BEGIN: Have your GameSalad Pong Template project already open. Step 1: Go to Home, then go to Scenes, and click the + to create a new scene.
Step 3: Double-click on GameOver, click + to create a new actor, and name it Win/Lose.
Step 4: Go into Win/Lose actor, add a new rule, and name it Player 1 Wins!
Step 5: Set the condition to: When ALL conditions are valid: Attribute game.P1 Score
= (equals)
11
Pong Template Step 6: Add Display Text behavior into rule, pick a color, and type in the text section You Win!
Step 8: Set the condition to: When ALL conditions are valid: Attribute game.P2 Score
= (equals)
11
Step 9: Add a Display Text behavior, pick a color, and type in the text section Computer Wins!
Pong Template Tutorial 2 Step 10: Go to Racket Player 1 actor, create a new rule, and name it Game Over Rule.
Step 11: Set the condition to: When ANY conditions are valid: Attribute game.P1 Score Attribute game.P2 Score
= (equals) = (equals)
11 11
Step 13: Add Change Attribute behavior to rule and set it to: Change Attribute game.ActiveBall To: 1
Step 14: Add Timer behavior and set it to AFTER 1 second and CHECK Run to Completion.
Pong Template Step 15: Add Change Scene behavior and have it set to Next Scene.
Step 16: Go to the GameOver scene, add the Win/Lose actor into the game, and stretch it out.
Step 17: Go to the GamePlay scene and click on the Preview button. Youre ready to play!