Computer Science Canada Moving Shapes With Timers |
Author: | DoomAdvocate [ Fri Jun 09, 2006 6:59 pm ] |
Post subject: | Moving Shapes With Timers |
What is the easiest way to move a shape using the Shape.move property? I'm trying to simulate fireworks using small circles. Just a little nudge in the right direction is all I need, thanks. I'm just not sure how to adjust the top and left properties... Much appreciated. |
Author: | cool dude [ Fri Jun 09, 2006 8:32 pm ] | ||
Post subject: | |||
its very simple! basically make a timer and use something like this:
make sure u give your timer an interval i.e. 10. then everytime u want to move it right u add i.e.10 or left u subtract i.e. 10. if u don't want to move it left u just say shape1.left without adding anything or subtracting. then pretty much the same with making the circle go up. if u want it to go up u subtract and if u want it to go down u add. and if u don't want it to go up or down then don't add or subtract. hope that helps |
Author: | DoomAdvocate [ Fri Jun 09, 2006 8:45 pm ] | ||
Post subject: | |||
Thanks for the tip. I had it a bit off.. I was doing:
So, now it should work. Thanks. |