Hello,
I’m interested in adding a variable to this mathematic formula to slow the bounce down. Otherwise, my alternative is to reduce the frame rate.
onClipEvent(load){
bounce = 2.9; // the higher, the more bouncy
}
onClipEvent(enterFrame){
_yscale -= ((_yscale - target_yscale) * bounce) / 2;
_xscale -= ((_xscale - target_xscale) * bounce) / 2;
}
onClipEvent(load){
_parent.scaler.target_xscale = 300;
_parent.scaler.target_yscale = 300;
}
I’ve attached a file to illustrate the situation.
Thank you for any help.