|
|
|
#1 |
|
Senior Member
Join Date: Sep 2005
Location: Gothenburg, Sweden
Posts: 357
|
onEnterFrame script moving issue!
Hello!
I use this code on a mc to make it move to a y possition: Code:
onClipEvent(load)
{
_root.ypos1=Stage.height/2;
}
onClipEvent(enterFrame)
{
this._y+=(_root.ypos1-this._y)/3;
}
Code:
on(press){
_root.ypos1=20;
}
My question is; Can you make the movement go from 0 then increase and then "break" and stop when it has reached "ypos1=20"? Thanks in advance!
__________________
/xzerox... Take a look at http://www.vmgcomputers.com/h75 |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|