murphysuk
01-31-2009, 09:49 PM
I have created a movie clip of 5 frames:
1 Stand still
2 Walk Left
3 Stop Left (with stop() action)
4 Walk Right
5 Stop Right (with stop() action)
I have written script so that the Left arrow moves the movie clip to frame 2 and the movie clip moves left. The right arrow moves to frame 4 and does the opposite.
My aim is for frames 2 and 4 to move onto the next frame when the arrow key is released.
Sometimes it does and sometimes it doesn't!! Is there anyway to ensure that the movies clip moves onto the standing left (or right) frame.
Many thanks,
Steven.
1 Stand still
2 Walk Left
3 Stop Left (with stop() action)
4 Walk Right
5 Stop Right (with stop() action)
I have written script so that the Left arrow moves the movie clip to frame 2 and the movie clip moves left. The right arrow moves to frame 4 and does the opposite.
My aim is for frames 2 and 4 to move onto the next frame when the arrow key is released.
Sometimes it does and sometimes it doesn't!! Is there anyway to ensure that the movies clip moves onto the standing left (or right) frame.
Many thanks,
Steven.