Computer Science Canada Need help "mixing" two of my turing codes. |
Author: | atal [ Sat Jun 11, 2011 11:37 am ] | ||||
Post subject: | Need help "mixing" two of my turing codes. | ||||
Hello, Im new to all this programming and i have a question. For school we had to make a rocket shooting up and so i did
If you run it you can see that it is not very good infact no good. So i make a rocket and loaded it into turing and it show up just fine
How can i "mix" the two codes so that the rocket i drew flys like that boring one that i made? Thank You in advance! -atal |
Author: | ProgrammingFun [ Sat Jun 11, 2011 11:48 am ] | ||
Post subject: | RE:Need help "mixing" two of my turing codes. | ||
You would create a for loop again in which you increment the y axis counter so that the pic redraws and looks as if it is rising:
This solution however, would flicker so you would need to use offscreenonly, which I'll let you figure out on your own. |
Author: | Tony [ Sat Jun 11, 2011 1:43 pm ] |
Post subject: | RE:Need help "mixing" two of my turing codes. |
since the picture doesn't change, the Pic.FileNew and Pic.Free should be outside of the loop. |
Author: | ProgrammingFun [ Sat Jun 11, 2011 1:56 pm ] |
Post subject: | Re: RE:Need help "mixing" two of my turing codes. |
Tony @ Sat Jun 11, 2011 1:43 pm wrote: since the picture doesn't change, the Pic.FileNew and Pic.Free should be outside of the loop.
Oh yes...I forgot that. My bad ![]() |
Author: | atal [ Sat Jun 11, 2011 7:59 pm ] |
Post subject: | Re: RE:Need help "mixing" two of my turing codes. |
ProgrammingFun @ Sat Jun 11, 2011 1:56 pm wrote: Tony @ Sat Jun 11, 2011 1:43 pm wrote: since the picture doesn't change, the Pic.FileNew and Pic.Free should be outside of the loop.
Oh yes...I forgot that. My bad ![]() What do u mean that PicFileNew adn Pic.Free shou be outside the loop. When i do that then it does not work but when i do it like how u said at first it works. |
Author: | Raknarg [ Sat Jun 11, 2011 8:02 pm ] |
Post subject: | RE:Need help "mixing" two of my turing codes. |
Pic.FileNew should be before the loop, Pic.Free should be after. |