I have the following movement script. How do I detect if this MC has reached the destination (aka 80)
onClipEvent (load) {
top = 80;
}
onClipEvent (enterFrame) {
cY = this._y;
difY = cY-top;
setProperty(this, _y, cY-(difY/5));
}
You can’t say if top = 80 go to and play (whatever) because top is always going to equal 80. SO I thought if difY == 80 but that doesn’t work either …
Sandman9