Search Tutorials
Add, Add add, Sub, Sub sub buttonsThe 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 buttonThe 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;
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|