Computer Science Canada Moving Ball |
Author: | upthescale [ Wed May 24, 2006 6:34 pm ] | ||
Post subject: | Moving Ball | ||
I would like to move a ball with te up and down key, while with the arrow keys, the line inside the ball will rotate 360 degrees, im sure u have seen this b4, and im sure u no wut i meen, if not here is the <b>code:</b>
yopu prolly thinkng...wow that is off, yes it is because i dont really know wut to do, i would like it so wheni hit the left arrow key, or right, the line in the ball will spine.. lol so anyhelp wud be great thanks! |
Author: | Cervantes [ Wed May 24, 2006 7:20 pm ] | ||||
Post subject: | |||||
Again, you'll need to know trigonometry.
This makes no sense. Why would you draw a line between these two points when you press the right arrow key? I think what you want to do is decriment the angle. To draw your line:
You should be able to get it working with that. Please, give it a reasonable try. |