| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /**
- Ninjas will use their knowledge of the GDP, GDP objects, and the spin function to create their own scene.
- New Vocabulary and Concepts
- * GDP Asset Library
- * Negative Numbers
- Reinforced Vocabulary and Concepts
- * Functions and Parameters
- * GDP Objects and Properties
- * GDP spin() function
- * Object Names and Renaming
- Sensei Notes
- * The Ninja needs to demonstrate mastery of the GDP by creating a scene from scratch.
- * There are a lot of Ninja characters, backgrounds, and other images in the GDP Assets that can be accessed
- by clicking on the magnifying glass on the bottom white bar.
- * The Ninja should compose a scene to the best of their ability.
- * Encourage them to experiment with changing shape properties.
- * Stress the importance of knowing the name of each object. Step 3 shows how to rename an object.
- Solution Steps
- 1 Make sure the Ninja opens the correct scene.
- 2 Encourage the Ninja to be creative within the bounds of the activity. The end goal is to use the spin function
- on their own game objects. Changing the offset of an object will drastically change how the object responds
- to the spin function. By using an offset, you can simulate shooting stars. Encourage them create complex
- items out of the simple shapes. For example, a telescope can be made from rectangles for the legs, an ellipse
- for the body, and a circle for the lens.
- 3 The GDP gives generic names with numbers to all new objects. Help the Ninja pick appropriate names.
- 4 Make sure the Ninja is coding in the scene's Update Every Frame event. If they coded somewhere else, help
- them copy and paste the code into the correct location. Because they will be adding to the scene, it is easy
- to lose track of what object is selected. Point out that the name of the selected object is always directly
- under the Events tab. If the Ninjas have a hard time understanding a negative number, help them write the
- code and then ask them what changed.
- 5 Before the Ninjas submit their scene, verify that they have used the spin function properly on at least two
- objects. Ask them what a negative number does to the spin direction of an object.
- */
- //All Ninja scripts for this activity should be unique. At minimum, there should be two spin functions. One
- //function should have a positive spin rate and the other should have a negative spin rate.
- spin(firstObject, 48);
- spin(secondObject,-330);
- /**
- Sensei Stops
- 5 Tell a Sensei how you created your scene. Did you use any GDP assets? How did you change the properties?
- Explain how you used the spin function.
- This is the last activity before new computer science concepts and GDP functions are introduced. Ensure
- that the Ninja can explain in their own words what they have learned up to this point.
- */
|