Traffic Intersection
Author |
Message |
skaterboy2628
|
Posted: 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
|
|
|
Panphobia
|
Posted: Sat May 25, 2013 12:39 pm Post subject: RE:Traffic Intersection |
|
|
have you even tried anything yet?
|
|
|
|
|
|
skaterboy2628
|
Posted: 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
Description: |
|
Filesize: |
1.35 MB |
Viewed: |
553 Time(s) |
|
|
|
|
|
|
|
skaterboy2628
|
Posted: 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
Description: |
|
Download |
Filename: |
PIC.t |
Filesize: |
255 Bytes |
Downloaded: |
273 Time(s) |
Description: |
|
Download |
Filename: |
PIC.t |
Filesize: |
379 Bytes |
Downloaded: |
289 Time(s) |
|
|
|
|
|
|
Panphobia
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
|
|
Panphobia
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
|
|
|
|
|
|
|