Sorry, but I don't exactly understand what is happening in the code...
I appears as if a key (scancode 32) must be pressed when objects 1 and 2 are colliding. When this happens, the program prints stuff until another key (scancode 18) is pressed.
First of all, I don't think there should be a repeat until loop inside your main game loop, especially with no sync inside of it.
Could you furthur explain your code?
I will try to help then...
Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href]

[/href]