click below
click below
Normal Size Small Size show me how
Vidcode M5L3
| Question | Answer |
|---|---|
| What is a property? | A variable attached to an object |
| What is the x property? | The left-right position of an object |
| What is the y property? | The up-down position of an object |
| What is a conditional? | An if-else statement, code that only runs under a certain condition |
| && | 'and' operator. This will your code to test for more than one condition. An example is "x > 0 && x < 100" |
| What does this code mean -- if(mouse.x > 300 && mouse.y < 50) | If the mouse is a the screen position above 300 AND in the y position below 50, then do something. Both conditions have to be met. |