Monday, 31 May 2010

Train Movement - Chosen Method

after getting it to rotate around 2 corners we found problems with the lines that the train moved along since it was telling the train to move along but because it was too close to the corner the corner will also tell it to rotate so in the end the train ended up spinning in one spot so we decided to change the codes and remove the lines it moved along.

We done so by making the train moving in a constant direction and when it touches the box it will make the train play few a series of frame and once it has reached the end of it, it will stay in that direction and move along the y axis or x axis depending which way it is coming from, before we had all the codes in all the train which would get confusing which is the reason why we broke down the programming into several objects the train will collide to do a new task.

http://megaswf.com/view/59695106459cdf678c7a632e39be4253.html

No comments:

Post a Comment