Add, Add add, Sub, Sub sub buttons
The add, add add, sub, sub sub buttons are located to the inside of the control panel movie clip, duplicated everyone three times, how many are the variables that modify the mathematical function. The difference between the various instances is the action associated to their.
Add button
The add button , with shape of +, will serve to fine increase the value of the associated variable , relatively to what it involves its variation (for the timesmorz variable, an increment of 0.001 is good, instead for maxangle variable an increment of 0.001 is not appreciable, will be therefore of 1; and so for n_osc variable it will be used 0.01). The actions to be associated (as done for the restart button) to the add buttons that control, respective, the timesmorz, maxangle e n_osc variables, are:

for timesmorz:
on (release) {
if (timesmorz<1.00) {
// the action comes executed if timesmorz<1
timesmorz = timesmorz+.001;
}
}
for maxangle:
on (release) {
maxang = maxang+1;
}
for n_osc:
on (release) {
n_osc = n_osc+.01;
}
| » Level Advanced |
|
Added: 2001-01-18 Rating: 9 Votes: 960 |
| » Author |
| No author details given. |
| » Download |
| Download the files used in this tutorial. |
| Download (67 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!