![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 天六 ![]()
![]() |
或者在 ImageList1 的物件做拋物線跟碰撞偵測問題 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If (PictureBox1.Left <= PictureBox2.Left + PictureBox2.Width) And (PictureBox1.Left >= PictureBox2.Left - PictureBox1.Width) And (PictureBox1.Top <= PictureBox2.Top + PictureBox2.Height) And (PictureBox1.Top >= PictureBox2.Top - PictureBox1.Height) Then PictureBox1.Visible = True PictureBox2.Visible = False 我有用這個碰撞偵測是沒問題 可是換成拋物線就無法碰撞偵測了
本篇文章發表於2011-11-12 23:03
|