Computer Science Canada

Car animtaion help

Author:  mafia101 [ Sat Jan 16, 2010 9:56 am ]
Post subject:  Car animtaion help

What is it you are trying to achieve?
I am trying to make a traffic 4 way intersection that has all the lights in sync, with 2 cars driving from opposite directions and a stick man crossing the road.

Finished
-making traffic intersection
-making traffic lights
-making traffic lights in sync

Need Help
-making 2 cars drive in ooposite directions
-making a stick man cross the road

What is the problem you are having?
I can't animate the box to drive like a car and i Cant animate a stick man


Describe what you have tried to solve this problem
I didn't

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<Answer Here>

Turing:


<Add your code here>



Please specify what version of Turing you are using
<Answer Here>

Author:  Turing_Gamer [ Sun Jan 17, 2010 4:02 pm ]
Post subject:  Re: Car animtaion help

I havn't opened the zip file but I think that you will need to have different variables and changes for each car, for example...
Turing:
var xcar1 := 0
var xcar2 := 100
var ycar3 := 0
var ycar4 := 100
loop
    xcar1 := xcar1 + 1
    xcar2 := xcar2 - 1
    ycar3 := ycar3 + 1
    ycar4 := ycar4 - 1
    %Drawing code
end loop


: