Blockland Forums > Help
How do i make a paint program
<< < (2/2)
PowerDag:
I think he means that he wants to make a canvas out of bricks, then event it to make you able to paint by clicking on a color-picking button, then clicking on the point you want to paint.
Lando The Climber:
My half-assed way of doing it would be assigning a client variable to the player when you click the pallette and then it checks what the variable is and changes the brick color accordingly. eg. click blue palette color: get client color variable set to 4 and when you click the brick it checks the var and if it is 4 it colors it blue, if it is 3 it colors it red etc. etc.
Lando The Climber:

--- Quote from: Lando The Climber on October 20, 2011, 05:49:47 PM ---My half-assed way of doing it would be assigning a client variable to the player when you click the pallette and then it checks what the variable is and changes the brick color accordingly. eg. click blue palette color: get client color variable set to 4 and when you click the brick it checks the var and if it is 4 it colors it blue, if it is 3 it colors it red etc. etc.

--- End quote ---
Oh, you want events

(this is the pallete brick)
onactivate client VCEmodVariable color set 1

(this is the brick you want colored)

onactivate client vceIfvariable color == 1
onvariabletrue self setcolor red
Navigation
Message Index
Previous page

Go to full version