Create Pipes Create Pipes Step 1 Click Add
- Slides: 81
Create Pipes
Create Pipes: Step 1 Click “Add event”
Create Pipes: Step 2 Select “System” Click “Next”
Create Pipes: Step 3 Select “Every X seconds” Click “Next”
Create Pipes: Step 4 Enter: • Interval: SECONDSPEROBSTACLE Click “Done”
Create Pipes: Step 5 Click “Add action”
Create Pipes: Step 6 Select “System” Click “Next”
Create Pipes: Step 7 Select “Create object” Click “Next”
Create Pipes: Step 8 Select/Enter: • Object to create: pipetop • Layer: 0 • X: 440 • Y: random(50, -250) Click “Done”
Create Pipes: Step 9… Add similar action for pipebottom … but use Y = Top. Pipe. Y + 750
Create Pipes: Done!
Add Instance Variable
Add Instance Variable: Step 1 Select “pipebottom”
Add Instance Variable: Step 2 Click Instance variables
Add Instance Variable: Step 3 Click “Add new”
Add Instance Variable: Step 4 Enter: • Name: Scored • Type: Boolean • Initial value: false • Description (optional) Click “OK”
Add Instance Variable: Step 5 Close popup
Add Instance Variable: Step 6 Click “Add action”
Add Instance Variable: Step 7 Select “pipebottom” Click “Next”
Add Instance Variable: Step 8 Select “boolean” Click “Next”
Add Instance Variable: Step 9 Select • Value: False Click “Done”
Add Instance Variable: Done!
Add Score Text. Box
Add Score Text. Box: Step 1 Right-click then Insert new object
Add Score Text. Box: Step 2 Select “Text” Click “Insert”
Add Score Text. Box: Step 3 Click inside Layout to place Text. Box
Add Score Text. Box: Step 3 Rename to “Score. Text”
Add Score Text. Box: Step 4 Click “Add action”in Event Sheet 2
Add Score Text. Box: Step 5 Select “Score. Text” Click “Next”
Add Score Text. Box: Step 6 Select “Move to top” Click “Done”
Add Score Text. Box: Done!
Add On. Start Events
Add On. Start Events: Step 1 Click “Add event”
Add On. Start Events: Step 2 Select “System” Click “Next”
Add On. Start Events: Step 3 Select “On start of layout” Click “Done”
Add On. Start Events: Step 4 Click “Add action”
Add On. Start Events: Step 5 Select “Score. Text” Click “Next”
Add On. Start Events: Step 6 Select “Set text” Click “Next”
Add On. Start Events: Step 8 Enter: • Text: 0 Click “Done”
Add On. Start Events: Step 9… Add more actions: • Tiled. Background 2: Set X to 0 • Tiled. Background: Set X to 0 • System: Set Score to 0
Add On. Start Events: Done!
Destroy Pipes
Destroy Pipes: Step 1 Click “Add action”
Destroy Pipes: Step 2 Select “pipetop” Click “Next”
Destroy Pipes: Step 3 Select “Destroy” Click “Done”
Destroy Pipes: Step 4… Add a similar action for pipebottom to Destroy it
Destroy Pipes: Done!
Initialize Bird
Initialize Bird: Step 1 Click “Add action”
Initialize Bird: Step 2 Select “bird” Click “Next”
Initialize Bird: Step 3 Select “Set Vector Y” Click “Next”
Initialize Bird: Step 4 Enter: • Vector Y: -JUMPSTRENGTH Click “Done”
Initialize Bird: Step 5 Click “Add action”
Initialize Bird: Step 6 Select “bird” Click “Next”
Initialize Bird: Step 7 Select “Set angle” Click “Next”
Initialize Bird: Step 8 Enter: • Angle: 320 Click “Done”
Initialize Bird: Done!
Add Scoring Events
Add Scoring Events: Step 1 Click “Add event”
Add Scoring Events: Step 2 Select “pipebottom” Click “Next”
Add Scoring Events: Step 3 Select “Compare X” Click “Next”
Add Scoring Events: Step 4 Select/Enter: • Comparison: ≤ Less or equal • X co-ordinate: Bird. X Click “Done”
Add Scoring Events: Step 5 Click “Add action”
Add Scoring Events: Step 6 Select “System” Click “Next”
Add Scoring Events: Step 7 Select “Add to” Click “Next”
Add Scoring Events: Step 8 Select/Enter: • Variable: Score • Value: 1 Click “Done”
Add Scoring Events: Step 9 Right-click, then Add another condition (C)
Add Scoring Events: Step 10 Select “pipebottom” Click “Next”
Add Scoring Events: Step 11 Select “Is boolean instance Variable set” Click “Next”
Add Scoring Events: Step 12 Select: • Instance variable: Scored Click “Done”
Add Scoring Events: Step 13 Click “Add action”
Add Scoring Events: Step 14 Select “Score. Text” Click “Next”
Add Scoring Events: Step 15 Select “Set text” Click “Next”
Create Pipes: Step 16 Enter: • Text: Score Click “Done”
Add Scoring Events: Step 17 Click “Add action”
Add Scoring Events: Step 19 Select “pipebottom” Click “Next”
Add Scoring Events: Step 20 Select “Set boolean” Click “Next”
Add Scoring Events: Step 16 Select/Enter: • Instance variable: Scored • Value: True Click “Done”
Add Scoring Events: Step 17 Right-click, then Invert
Add Scoring Events: Done!
(END of Part 3) • Derived from ‘Make your own "Flappy Bird" game in 10 minutes’ originally published by Tom • Updated with enhancements from Flappy Bird template
- Click to add titleclick to add subtitle
- Click to add titleclick to add subtitle
- Click to add titleclick to add subtitle
- Step 1 step 2 step 3 step 4
- Clever click
- Click clever click safe
- Safety click
- Cyber safety
- Click to add title
- Click to add text
- Click to add title
- Click to add title ne demek
- Click here to add text
- Click to add subtitle artinya
- The word "synthesize" means: melt add create put together
- How to draw a compass rose step by step
- Step costs
- Isosceles triangle arrangement
- Bronchoscopy step by step
- Oracle real application testing
- Agenda zilei step by step
- Step up step back
- Karim hamdi
- Fabric process step by step
- How something works
- Oracle real application testing step by step
- Step-by step inventory process
- Jamie tried to solve an equation step by step.
- Sine rule graph
- Steps in portfolio management process
- Lagrange multiplier calculator step by step
- Combine like terms steps
- Inbound and outbound proxy in sap abap
- Step by step tools
- Dino the dinosaur text structure
- Hook introduction examples
- Tania rachkoskie
- Primate space dental
- Dimensional analysis step by step method
- Completion of the square
- High mass star life cycle
- Veritas bare metal restore
- Step by step punnett square
- Solving two step and multi step inequalities
- Solving quadratic equations step by step
- The 8 step method
- Describe the process of preparing apple juice in 5 steps
- Inside of a water tower
- Pochampally sarees history
- Oracle zdm
- Balancing chemical equations step by step
- How to write limericks
- Hangman division
- How to solve piecewise functions step by step
- What food do plants make
- Caiet de evaluare step by step
- Step 1 in 7 step improvement process
- Pbpa writing
- Stage 1: denial
- Exponential inequality definition
- Conics completing the square
- Epilatories
- Viva video collage
- How to solve trigonometric equations step by step
- Solve trig identities
- How to disassemble an engine step by step
- Linear simultaneous equations
- Step-by-step examples
- Wpf step by step
- How to wash dishes step by step with pictures
- Fard wudu
- Step-by-step assembly instructions
- Steps of blood flow through the heart
- Isometric drawing exercise
- Dermal nitrate test procedure
- Computer assembly step by step
- Matlab particle filter example
- Steps to planting a church
- How to perform an exorcism step by step
- How to write an argumentative essay step by step
- Piecewise function problem solving examples with answers