
-----------------------------------
skaterboy2628
Sat May 25, 2013 11:50 am

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

-----------------------------------
Panphobia
Sat May 25, 2013 12:39 pm

RE:Traffic Intersection
-----------------------------------
have you even tried anything yet?

-----------------------------------
skaterboy2628
Sat May 25, 2013 1:15 pm

Re: RE:Traffic Intersection
-----------------------------------
have you even tried anything yet?

yaa  i started

-----------------------------------
skaterboy2628
Sat May 25, 2013 1:19 pm

Re: RE:Traffic Intersection
-----------------------------------
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

-----------------------------------
Panphobia
Sat May 25, 2013 9:56 pm

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
Sun May 26, 2013 11:49 am

Re: 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.
the thing is i dont know how to ,my teacher didnt even teach us,could u help me make it ????

-----------------------------------
Insectoid
Sun May 26, 2013 12:30 pm

RE:Traffic Intersection
-----------------------------------
Your teacher didn't teach you variables? That's like, lesson #2.

-----------------------------------
skaterboy2628
Sun May 26, 2013 3:14 pm

Re: RE:Traffic Intersection
-----------------------------------
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

-----------------------------------
Panphobia
Sun May 26, 2013 3:43 pm

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
Sun May 26, 2013 3:50 pm

RE:Traffic Intersection
-----------------------------------
Are you sure your teacher didn't teach you about variables, or did you just not pay attention in class?

-----------------------------------
Zren
Sun May 26, 2013 6:09 pm

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
Thu May 01, 2014 10:21 pm

RE:Traffic Intersection
-----------------------------------
Hey man ...
How did you do the pedestrian signal?
I even need help on that
