Assigning values entered by the user to properties
In this task, we will request the user to enter the desired step value for each of the four hawks. We will use the values entered by the user to make the four hawks fly with different speeds.
We will use an existing project that has four instances of the
- Open the project saved in the Using properties to call functions recipe.
- Click on Edit Code, at the lower-right corner of the big scene preview. Alice will show a smaller preview of the scene and will display the Code Editor on a panel located at the right-hand side of the main window.
- Click on the class: MyScene drop-down list and the list of classes that are part of the scene will appear.
- Select MyScene | Edit run.