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 subtitle
- Click to add titleclick to add subtitle
- Click to add titleclick to add subtitle
- Step 1 step 2 step 3 step 4
- Click clever
- Cyber safety
- Click clever click safe
- Click clever click safe
- Click here to add text
- Click to add subtitle artinya
- Click to add title
- Click to add text
- Click to add title
- Click to add title ne demek
- The word "synthesize" means: melt add create put together
- How to combine like terms step by step
- Lagrange multiplier calculator step by step
- Step by step tools
- The age of the dinosaurs text structure
- Sap pi abap proxy
- Primate space dental
- Step by step introduction paragraph
- Tania rachkoskie
- Steps to complete the square
- Factor label method steps
- Step by step how to set up a punnett square
- High mass star life cycle
- Netbackup bare metal restore step by step
- The 8-step method
- Solving two step inequalities
- Solving quadratic equations step by step
- Write the process of making pochampalli saree
- Process of making apple juice step by step
- Inside of a water tower
- Oracle zero downtime migration
- Kesler science balancing chemical equations
- Limerick example
- Steps on how to divide decimals
- Piecewise step function
- Caiet de evaluare step by step
- The steps of photosynthesis
- Step 1 in 7 step improvement process
- Informative essay steps
- Solving quadratic inequalities
- Phase one denial
- Solving exponential inequality
- Complete the square steps
- Contraindications for waxing milady
- How to use viva video step by step
- Trig equations
- Quadratic formula trigonometry
- Step-by-step examples
- How to disassemble an engine step by step
- Linear simultaneous equations
- Steps in dishwashing
- Wpf step by step
- Bdislam.com
- Step-by-step assembly instructions
- Steps of blood flow through the heart
- Computer assembly step by step
- Basic isometric drawing exercises
- What is the positive result for the dermal nitrate test?
- Church planting steps
- Matlab particle filter example
- How to perform an exorcism step by step
- How to write an argumentative essay step by step
- Graph piecewise functions
- Step-by-step assembly instructions
- Step up step back
- Solving two step inequalities
- How to write a persuasive essay step by step
- Balanced equations
- Face shape step by step
- How to install fusion compute
- Completeing the square
- Simultaneous equations step by step
- Whats a photogram
- Vm capacity planner
- Disking of teeth
- How to balance equation in acidic solution
- How are stars formed step by step?
- Netscape communicator 4