05-10-2013, 11:39 AM
To make a global variable:
-click the scene tab at the top of the screen
-click the button that says "add scene property..." under the word "unmanaged"
-select "decimal number" from the first dropdown menu, name your variable, then select anything from the second dropdown menu
This is your global variable. Any method can reference it. To do so, make a method, such as "helicopter move". On creation of the method, two popup menus will appear. First will be direction of motion, and second will be distance to move. At the bottom of the second menu, your global variable will be listed as an option.
|