I have 12 squares, 6 named block and 6 named blockgot.
When a block visibility is false I want a blockgot's visibility to be true.
so far I have this :
the block part works, but the blockgot only hides one block on load ?
sub timer1
For i = 0 To 6
If block(i).Visible = True Then
If mozzy.Left < block(i).Left + block(i).Width And mozzy.Left + mozzy.Width > block(i).Left And mozzy.Top < block(i).Top + block(i).Height And mozzy.Top + mozzy.Height > block(i).Top Then
block(i).Visible = False
End If
End If
For a = 0 To 6
If block(i).Visible = False Then
blockgot(a).Visible = True
End If
Next a
Next i
end sub
Sub Form_Load()
block(i).Visible = True
blockgot(a).Visible = False
End Sub
can anybody give me some tips ?
cheers.
When a block visibility is false I want a blockgot's visibility to be true.
so far I have this :
the block part works, but the blockgot only hides one block on load ?
sub timer1
For i = 0 To 6
If block(i).Visible = True Then
If mozzy.Left < block(i).Left + block(i).Width And mozzy.Left + mozzy.Width > block(i).Left And mozzy.Top < block(i).Top + block(i).Height And mozzy.Top + mozzy.Height > block(i).Top Then
block(i).Visible = False
End If
End If
For a = 0 To 6
If block(i).Visible = False Then
blockgot(a).Visible = True
End If
Next a
Next i
end sub
Sub Form_Load()
block(i).Visible = True
blockgot(a).Visible = False
End Sub
can anybody give me some tips ?
cheers.