rimbaudpl
10-18-2005, 10:25 AM
I wrote something like this :
on (release) {
x_scale_value = int(getproperty("/map2", _xscale)*1.1);
y_scale_value = int(getproperty("/map2", _yscale)*1.1);
n=1 ;
while (n++ < 5 ) {
setProperty("/map2", _xscale, x_scale_value+n);
setProperty("/map2", _yscale, y_scale_value+n);
height_value = int(getproperty("/map2", _height));
width_value = int(getproperty("/map2", _width));
x_value = getproperty("/map2", _x);
y_value = getproperty("/map2", _y);
}
}
I need to make the zoom moving smoothly. How to do it?
Button works, but mc just changes its scale.
I need to make it moving - bit by bit (n++), that's why I used that loop ( but it dosn't work ) .
I hope it's clear ;)
on (release) {
x_scale_value = int(getproperty("/map2", _xscale)*1.1);
y_scale_value = int(getproperty("/map2", _yscale)*1.1);
n=1 ;
while (n++ < 5 ) {
setProperty("/map2", _xscale, x_scale_value+n);
setProperty("/map2", _yscale, y_scale_value+n);
height_value = int(getproperty("/map2", _height));
width_value = int(getproperty("/map2", _width));
x_value = getproperty("/map2", _x);
y_value = getproperty("/map2", _y);
}
}
I need to make the zoom moving smoothly. How to do it?
Button works, but mc just changes its scale.
I need to make it moving - bit by bit (n++), that's why I used that loop ( but it dosn't work ) .
I hope it's clear ;)