Computer Science Canada Help with colour changing |
Author: | RobertCoombs [ Fri May 15, 2009 9:39 am ] | ||||
Post subject: | Help with colour changing | ||||
I'm currently working on a project for my Grade 10 Comp. Eng. class and I need help making the blue circles on the picture to turn red when I click on them and turn back blue when clicked again. Any help would be appreciated. Thanks in Advance, RobertCoombs The Code:
Mod Edit: Remember to use syntax tags! Thanks ![]()
|
Author: | BigBear [ Fri May 15, 2009 1:45 pm ] |
Post subject: | RE:Help with colour changing |
So you need to use Mouse.Where(x,y,button) and check if the mouse is over the position of the circle and that button > 0 meaning clicked and if it has been clicked before or what color it is if blue then re draw red if red and mouse stuff then draw black |
Author: | tjmoore1993 [ Fri May 15, 2009 3:29 pm ] | ||
Post subject: | Re: Help with colour changing | ||
Like BigBear suggested
Check out the Turing Tutorial section for Perfect Circle Collision ![]() |