Thread: RTS Movement
View Single Post
Challenge
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Wink Challenge - 04-27-2015, 10:57 AM

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.

Last edited by MrMoke; 04-27-2015 at 11:13 AM.
   
Reply With Quote