Hi all,
i need help with making a paint-like program where you paint parts of an abject. I've got the code that colors a part when you hold down a key but this isnt what i would like.
There are quite a few objects that will be painted and it will be hard to remember all the keys :(
What i would like to know is how to divide my code into pieces and be able to do this:
when i press a certain key i will be able to color the part that corresponds to that key using the same keys that color the other object...confusing??
Simplified:
1) i will use keys 1 to 6 to change the color(e.g. 2 will rise the red value and 1 will decrease it, 4 will rise green value and 3 will decrease it, etc.)
2) Lets say there are three parts; a,b,c
3) When i press 8 then i will only be able to change the color of part a using keys 1 to 6 as above
When i press 9 i will only be able to change the color of part b using the same keys, 1 to 6
Same applies for part c
any ideas on how to do this, all welcome, and is it possible?
i need help with making a paint-like program where you paint parts of an abject. I've got the code that colors a part when you hold down a key but this isnt what i would like.
There are quite a few objects that will be painted and it will be hard to remember all the keys :(
What i would like to know is how to divide my code into pieces and be able to do this:
when i press a certain key i will be able to color the part that corresponds to that key using the same keys that color the other object...confusing??
Simplified:
1) i will use keys 1 to 6 to change the color(e.g. 2 will rise the red value and 1 will decrease it, 4 will rise green value and 3 will decrease it, etc.)
2) Lets say there are three parts; a,b,c
3) When i press 8 then i will only be able to change the color of part a using keys 1 to 6 as above
When i press 9 i will only be able to change the color of part b using the same keys, 1 to 6
Same applies for part c
any ideas on how to do this, all welcome, and is it possible?