|
Animate the construction of 3D objects
Click here to download the sample file
property newmodel1
on beginsprite member(1).resetWorld() newmodel1 = member(1).newModelresource("sphereResource1",#sphere, #both) newmodel1.radius = 60 member(1).newModel("sphere",newmodel1) end
on exitFrame h = the mouseH h = min(h,360) --does not let h = more than 360 degrees h = max(h,0) --does not let h = less than 0 degrees --put h newmodel1.endAngle = h end
|