PDA

View Full Version : How to rotate the pool while the balls going?



Dong Ke
10-23-2001, 10:28 PM
I'm totally a beginner. I don't know how to rotate the pool while the balls going in my Pool3D game.

I assigned the rotation variables to the mouse so that I can rotate the pool by moving the mouse, and then I wrote a procedure (in Delphi) to make the balls going:

procedure go;
...
repeat
handle_contacts;
update_balls;
paint;
until all_balls_stopped;
...

It did work. But then I found that I can't rotate the pool with the mouse while the balls going on it. How can I rotate it with the balls going at the same time? Please help!

Thanx in advance.


[This message has been edited by Dong Ke (edited 10-24-2001).]

wedge
10-23-2001, 10:36 PM
You can f. a. move the Camara in every Animation step or you can befor you make any other movement do a rotation.

svg
10-24-2001, 04:46 AM
try to use application.processmessages within your loop so other procedures can be called within the loop

Dong Ke
10-24-2001, 04:18 PM
I really appreciate it if you can tell me more about application.processmessages