Computer Science Canada Polygon and circle moving |
Author: | chant_seg [ Thu Apr 05, 2007 6:43 pm ] | ||
Post subject: | Polygon and circle moving | ||
Hello, I am new this is my first post. I have to make a Polygon move as the circles does in my code I have been reading and researching but all I try fails I was wondering if anyone could give me a hand or point me in the right direction it would be appreciated at this point Thank you . ![]() code Mod by Clayton: Added code tags.
|
Author: | richcash [ Thu Apr 05, 2007 8:06 pm ] | ||
Post subject: | Re: Polygon and circle moving | ||
If you want to move a polygon, you have to change each element of the x-coordinates and y-coordinates arrays.
And you have to declare your r and s arrays outside of the loop so they are not reset back to default values each time. |
Author: | chant_seg [ Fri Apr 06, 2007 11:26 am ] |
Post subject: | Re: Polygon and circle moving |
Hey! Awsome! thanxs a bunch! ![]() ![]() |