Public Function IsCollision2D(ByRef Boite1 As Rectangle, ByRef Boite2 As Rectangle ) As Boolean Dim udttemprect As System.Drawing.Rectangle = Rectangle.Intersect(Boite1, Boite2) IsCollision2D = udttemprect <> Nothing End Function
If mario1.Left + mario1.Width > piece.Left And _ mario1.Left < piece.Left + piece.Width And _ mario1.Top < piece.Top + piece.Height And _ mario1.Top + mario1.Height > piece.Top Then piece.Visible = False If piece.Visible False Then n n + 1
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question