I'm writing a program, I need that when PictureBox1, called "Player", hits certain pictures of PictureBox2-15, referred to as eat1-14, they disappear. Here is how I tried it:
if ((Player.Location.X < eat1.Location.X)) { if ((Player.Location.Y < eat1.Location.Y)) { eat1.Visible = false; } } It works very strange, i.e. sometimes food is not eaten, or only one of 14 is eaten.