PDA

View Full Version : syntax help



deep cover
April 19th, 2002, 10:03 PM
I'm trying to write the Actionscript code that will move my MC to a certain point then reset. In other words, I want my MC to move left until it reaches -650 of the X position then start all over again from 750 of the X position.

Here's the code I've written which doesn't work:

onClipEvent (enterFrame) {
_x-=2;
&nbsp &nbsp &nbsp &nbsp }
if (_x =-670
_X = 740

Any aid would be appreciated immensely.

sinfiniti
April 21st, 2002, 12:59 AM
try this:
onClipEvent (enterFrame) {
_x-=2;
if(_x<=-670){
_x=740;
}
}

:)
jeremy

eyezberg
April 21st, 2002, 01:16 AM
Why don't you read the answer to your previous post before posting this again? 't was already answered!

I am not Jubba
April 21st, 2002, 10:14 AM
no he posted twice in the same day, accidently (i am guess since they are 3 minutes apart, must have hit the button twice). And Sinf decided to answer in this thread instead of the one that everyone else already commented in...