I'm receving an error when I try and use this code. it worked
fine until I included the "while the mouseDown" statements in each
of the cases. I need these while statements included to ensure
smooth movement. Here's the code I'm using.
Any help would be greatly appreciated. Thanks... OOOH yeah
the error is an "Expected end case statement".
Lingo doesn't allow you to place one function inside another.
sees the first "end", it thinks that is the end of the
since there is no end case, it throws an error.
I'm surprised that you didn't get an error on the while
is no while keyword in Lingo. There is a while condition for
loop: repeat while...
You might want to use an on exitFrame function to control the
Repeat loops are not good to use to control animation. A
will run as fast as possible. An exit, enter, or prepare
will run at the frame rate of the movie.
You can then use a combination of the frame rate and the
you move the sprite to control the animation.