Color Collision

mumbot

Member
Joined
Oct 3, 2012
Messages
5
Programming Experience
3-5
Hello all i am wanting to know how to make a Picturebox called spritebox to move to center screen
if the spritebox is touching the color cyan
 

mumbot

Member
Joined
Oct 3, 2012
Messages
5
Programming Experience
3-5
Ok lets say the picturebox is on top of the color Cyan i want it to move center screen
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,130
Location
Sydney, Australia
Programming Experience
10+
You seem to be trying to post as few words as possible at the expense of clearly explaining your problem to people who have no knowledge of it. By "on top" do you mean that this colour will be on the form containing the PictureBox, on the desktop, on any window at all, something else? FULL and CLEAR please.
 

mumbot

Member
Joined
Oct 3, 2012
Messages
5
Programming Experience
3-5
When the picture box Collides with Cyan so i tried something like this

PHP:
 if (spritebox.BackColor == C)
            {
                spritebox.Location = new Point(310, 300);
            }
but that does not work
 
Top Bottom