Quote:
Originally Posted by MrMoke
OK ROC- That's OK, but---
I challenge you to make the following changes to you logic, so that the Play window can be modified to any full-pane sizes, and still work accurately.
1) Use the Rendering preferences to modify the play width and height to a different standard size.
2) Modify the code to prompt your user to click somewhere that will allow you to compute the value of any variables that you may need. Use any fixed variables that you may need only in this portion of your code.
3) Use those newly created variables along with the distance from top/left to control the ball movement.
Only took me a few minutes after I got my head wrapped around it.
|
Im confused... Isnt this what im doing?
1. I set the render size.
2. I do this in the first part of the moveTo method.
3. I do this in the seconds part of the moveTo method...