*SEGA EU / Effects
- Started
- Last post
- 5 Responses
- popovich
Okay, I am not going to sound particularly original right now, but still. http://www.sega-europe.com/ - great site. Go to Games. See those two boxes on the right, saying Screenshots and Movie? How does one achieve those bouncy effect? Is it simply shape tween or is it some scripting?
I am sorry, if it was already asked/answered before. I just don't know what to search for. :)...
- unknown0
its just a shape tween
- popovich0
aI thought.... thanks.
- mac100
you can do it with a bit of script
just copy and paste this code on to an MC
[code]
onClipEvent (load) {
_visible = false
oldtt = getTimer();
fin = 100;
iniz = 0;
_yscale = iniz;
_xscale = iniz;
acc = 5;
b = 1.25;
}
onClipEvent (enterFrame) {
tt = getTimer();
if(tt-oldtt > 500){
_visible = true
iniz = _yscale;
iniz = _xscale;
diff = (diff+((fin-iniz)/acc))/b;
_yscale += diff;
_xscale += diff;
}
}
[/code]mac10 :)
- popovich0
wooo.... I'll try that! ;)
- popovich0
mac, thanks, yo. it's a bit different effect, more like "bouncy scaling", but it's a nice piece of code anyways. ;)