if Box\Alive = 1 And Ball\Direction = 4 And Box\X + ImageHeight(BoxFN) + 1 > Ball\X Then Ball\Direction = 3 : Box\Alive = 0 ; Bottom
The problem with this is any box that is beyond a certain x co-ord, will be deleted. You don't know which box your colliding with.