Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Car animtaion help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mafia101




PostPosted: 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>



trafficlight.t
 Description:

Download
 Filename:  trafficlight.t
 Filesize:  2.7 KB
 Downloaded:  97 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Turing_Gamer




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: