求教图片上下或左右移动时碰壁会回转,用if语句怎么写
vb吧
全部回复
仅看楼主
level 3
杨小平25 楼主
2020年10月01日 00点10分 1
level 15
If 图片.Left <= 0 Or 图片.Left + 图片.Width >= Me.ScaleWidth Then
水平移动速度 = -水平移动速度
End If
If 图片.Top <= 0 Or 图片.Top + 图片.Height >= Me.ScaleHeight Then
竖直移动速度 = -竖直移动速度
End If
2020年10月01日 00点10分 2
1