paint-like help

Blitz3D Forums/Blitz3D Beginners Area/paint-like help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

this is an example (doesnt work)of what i am trying to do here:
;coloring the first object
If KeyDown(2) Then 


	If KeyDown( 2 )=True And red#>0 Then red#=red#-1
	If KeyDown( 3 )=True And red#<255 Then red#=red#+1
	If KeyDown( 4 )=True And green#>0 Then green#=green#-1
	If KeyDown( 5 )=True And green#<255 Then green#=green#+1
	If KeyDown( 6 )=True And blue#>0 Then blue#=blue#-1
	If KeyDown( 7 )=True And blue#<255 Then blue#=blue#+1

EntityColor cube, red#, green#, blue#

;coloring the second object
If KeyDown(3) Then


If KeyDown( 2 )=True And red#>0 Then red#=red#-1
	If KeyDown( 3 )=True And red#<255 Then red#=red#+1
	If KeyDown( 4 )=True And green#>0 Then green#=green#-1
	If KeyDown( 5 )=True And green#<255 Then green#=green#+1
	If KeyDown( 6 )=True And blue#>0 Then blue#=blue#-1
	If KeyDown( 7 )=True And blue#<255 Then blue#=blue#+1

EntityColor sphere, red#, green#, blue#

;coloring the third object
If KeyDown(3) Then

If KeyDown( 2 )=True And red#>0 Then red#=red#-1
	If KeyDown( 3 )=True And red#<255 Then red#=red#+1
	If KeyDown( 4 )=True And green#>0 Then green#=green#-1
	If KeyDown( 5 )=True And green#<255 Then green#=green#+1
	If KeyDown( 6 )=True And blue#>0 Then blue#=blue#-1
	If KeyDown( 7 )=True And blue#<255 Then blue#=blue#+1

EntityColor cone, red#, green#, blue#


does anyone know? even if you dont, tell me..