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

Username:   Password: 
 RegisterRegister   
 Traffic Intersection
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
skaterboy2628




PostPosted: Sat May 25, 2013 11:50 am   Post subject: Traffic Intersection

Can some one help me build a 4 way intersection and a person walk across the screen ,need help for a final project please,in grade 10
Sponsor
Sponsor
Sponsor
sponsor
Panphobia




PostPosted: Sat May 25, 2013 12:39 pm   Post subject: RE:Traffic Intersection

have you even tried anything yet?
skaterboy2628




PostPosted: Sat May 25, 2013 1:15 pm   Post subject: Re: RE:Traffic Intersection

Panphobia @ Sat May 25, 2013 12:39 pm wrote:
have you even tried anything yet?


yaa i started



INTERSECTION.bmp
 Description:
 Filesize:  1.35 MB
 Viewed:  553 Time(s)

INTERSECTION.bmp


skaterboy2628




PostPosted: Sat May 25, 2013 1:19 pm   Post subject: Re: RE:Traffic Intersection

Panphobia @ Sat May 25, 2013 12:39 pm wrote:
have you even tried anything yet?

i just need help making 4 cars moving ,a person walking across the screen,and the lights,can u help



PIC.t
 Description:

Download
 Filename:  PIC.t
 Filesize:  255 Bytes
 Downloaded:  274 Time(s)


PIC.t
 Description:

Download
 Filename:  PIC.t
 Filesize:  379 Bytes
 Downloaded:  289 Time(s)

Panphobia




PostPosted: Sat May 25, 2013 9:56 pm   Post subject: RE:Traffic Intersection

Well, trying drawing 4 cars and a person to the screen, and then instead of representing their positions with constants, use variables. From that point it should be pretty self explanatory, but if you finish that and still have problems, just post the new updated code.
skaterboy2628




PostPosted: Sun May 26, 2013 11:49 am   Post subject: Re: RE:Traffic Intersection

Panphobia @ Sat May 25, 2013 9:56 pm wrote:
Well, trying drawing 4 cars and a person to the screen, and then instead of representing their positions with constants, use variables. From that point it should be pretty self explanatory, but if you finish that and still have problems, just post the new updated code.

the thing is i dont know how to ,my teacher didnt even teach us,could u help me make it ????
Insectoid




PostPosted: Sun May 26, 2013 12:30 pm   Post subject: RE:Traffic Intersection

Your teacher didn't teach you variables? That's like, lesson #2.
skaterboy2628




PostPosted: Sun May 26, 2013 3:14 pm   Post subject: Re: RE:Traffic Intersection

Insectoid @ Sun May 26, 2013 12:30 pm wrote:
Your teacher didn't teach you variables? That's like, lesson #2.

exactly , and we told him that and he said go check the internet!!!can someone help me ,i need it asap
Sponsor
Sponsor
Sponsor
sponsor
Panphobia




PostPosted: Sun May 26, 2013 3:43 pm   Post subject: RE:Traffic Intersection

I really doubt this, how can a programming teacher not teach about variables. Without variables you can throw away anything to do with programming......Anyway what did you learn then?
Insectoid




PostPosted: Sun May 26, 2013 3:50 pm   Post subject: RE:Traffic Intersection

Are you sure your teacher didn't teach you about variables, or did you just not pay attention in class?
Zren




PostPosted: Sun May 26, 2013 6:09 pm   Post subject: RE:Traffic Intersection

If you don't know how to use variables, then read up.
http://compsci.ca/v3/viewtopic.php?t=9634

For moving something across the screen, you'll want to repeatedly draw a screen with a slight difference on each frame (which is the basis of animation). To repeat something, use a loop.
http://compsci.ca/v3/viewtopic.php?t=3678

To have something move horizontally across the screen, you'd need the X coordinate of the object to increment each frame.

Oh and if there's any other programming constructs you don't understand, you can read up on them in The Turing Walkthrough.
hamza.swag




PostPosted: Thu May 01, 2014 10:21 pm   Post subject: RE:Traffic Intersection

Hey man ...
How did you do the pedestrian signal?
I even need help on that
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 12 Posts ]
Jump to:   


Style:  
Search: