Computer Science Canada Help with moving objects |
Author: | skyler [ Tue May 16, 2006 11:13 pm ] | ||
Post subject: | Help with moving objects | ||
hi, this is a truck i designed but i couldn't move the body of the truck which is a polygon with the tires and the lights at the same time... please i need your help in this , here is the program with documentation:
THANK YOU. |
Author: | jamonathin [ Wed May 17, 2006 9:46 am ] |
Post subject: | |
Well im about to state the obvious, because you're moving them at seperate times. Your last 3 for loops are 0 .. 640 so they can all go into the same for loop. But im shure you dont even get that far because you have no exit in your loop. It works like this. If you want 5 objects to move at the same time, are you going to move object 1, then 2, then 3 . . then 5? NO! You're going to move object 1-5 at the same time. Put them all im the same for loop/loop in order to get them to move together. Also, im the future post all of the code (so we can se exactly what you mean). |
Author: | skyler [ Wed May 17, 2006 11:12 am ] | ||
Post subject: | |||
Thank you for ur reply and here is the full code:
Can u please help me arrange that in order to make the whole truck move. THANK YOU. |
Author: | Albrecd [ Wed May 17, 2006 12:48 pm ] |
Post subject: | |
You could start by doing what jamonathin already told you. |
Author: | skyler [ Wed May 17, 2006 1:55 pm ] |
Post subject: | |
hi, thank you for ur reply Albrecd, but i'm kinda a beginner and i really didn't quite understand how to arrange to object in one loop to make them move , so if u could help me please i'd be grateful. THANK YOU |