nav.boo.onPress = function(){
oldh = newh
oldw = neww
newh = 1000
neww = 800
new Tween (boxOne,"_x",Bounce.easeOut,oldh,newh,1,true);
new Tween (boxOne,"_y",Bounce.easeOut,oldw,neww,3,true);
}
nav.goomba.onPress = function(){
oldh = newh
oldw = neww
newh = 500
neww = 100
new Tween (boxOne,"_x",Elastic.easeOut,oldh,newh,1,true);
new Tween (boxOne,"_y",Bounce.easeOut,oldw,neww,3,true);
}
That is a segment of the code used to make the tweens, although it only shows the X and Y being changed the size of the shape was also changed. To preview it; click here