Computer Science Canada help with animation |
Author: | asianrandy [ Fri Dec 26, 2008 8:40 pm ] | ||
Post subject: | help with animation | ||
i help with animation because i have a problem. first lm trying to do is making robot moves first than move the tanks.
|
Author: | BigBear [ Fri Dec 26, 2008 9:36 pm ] |
Post subject: | Re: help with animation |
Make a seperate loop to move the tanks the same way you moved the robot |
Author: | asianrandy [ Sat Dec 27, 2008 8:47 pm ] | ||
Post subject: | RE:help with animation | ||
i got an error.
|
Author: | revangrey [ Mon Dec 29, 2008 12:01 am ] |
Post subject: | Re: help with animation |
I think you are supposed to put "end loop" somewhere... and you spelled culminating wrong... |
Author: | asianrandy [ Mon Dec 29, 2008 12:27 am ] |
Post subject: | RE:help with animation |
i did and noting happened, there was no movement. |
Author: | syntax_error [ Mon Dec 29, 2008 3:02 am ] |
Post subject: | RE:help with animation |
Then trace through your code. |
Author: | asianrandy [ Mon Dec 29, 2008 2:12 pm ] |
Post subject: | RE:help with animation |
i did but it feel like no problem with it but the only problem their is no movement. i put end loop and end for at the end. |
Author: | Tony [ Mon Dec 29, 2008 5:38 pm ] |
Post subject: | RE:help with animation |
What's happening inside the loop? When does the loop exit? |
Author: | asianrandy [ Mon Dec 29, 2008 7:05 pm ] |
Post subject: | RE:help with animation |
inside the loop, their are movement first l'm trying is making the transformer moved first and than moved the tank toward to the transformer. and that how the loop should end. |
Author: | Tony [ Mon Dec 29, 2008 7:18 pm ] |
Post subject: | Re: RE:help with animation |
asianrandy @ Mon Dec 29, 2008 7:05 pm wrote: and that how the loop should end.
A computer does not try to guess what you want it to do. It blindly executes all of the instructions, precisely, trusting you not to make it do anything stupid. With that in mind, give the above questions another go. |
Author: | asianrandy [ Mon Dec 29, 2008 7:34 pm ] | ||
Post subject: | RE:help with animation | ||
i need help because their no movement, first the transformer moves first and then the tanks move after. when i start the program, their is no movement. Need some tips to improve this program.
|
Author: | Tony [ Mon Dec 29, 2008 10:53 pm ] |
Post subject: | RE:help with animation |
Do you understand how for loop works? Do you understand how loop works? In your code, how many times will the loop run? The answer to the last question will lead you towards the explanation why your program draws the same thing, in the same place. |
Author: | syntax_error [ Mon Dec 29, 2008 11:25 pm ] |
Post subject: | RE:help with animation |
You don't need the loop, remove it and try it again. |
Author: | A.J [ Tue Dec 30, 2008 1:17 pm ] |
Post subject: | Re: help with animation |
I'd really advise u to look into procedures, so that you can arrange your code into the smaller chunks of code with specific goals instead of drawing all the boxes in the main animation loop... secondly, I'll advise u to not draw the boxes with specific numbers. Rather, try drawing them with respect to the center of the screen. That way, it will be easier to figure out what direction to go, and it will also be easier to make changes (or debug). |
Author: | asianrandy [ Tue Dec 30, 2008 11:59 pm ] |
Post subject: | RE:help with animation |
i don't know how to use procedures like drawing boxes. |
Author: | A.J [ Wed Dec 31, 2008 4:21 am ] |
Post subject: | Re: help with animation |
well...look it up in the Turing Walkthrough... |