here's a test file with some coloured beams & a target sprite which changes colour based on adding beam rgb...
works nicely, but since i'm new to construct i thought i'd post this & ask if there's a simpler method that i'm missing.
You could take a look at the canvas plugin. I know you can access the colour of the canvas in rgba format and also set the colour in the same way.
Take a look at the "ReplaceColor" effect.
Develop games in your browser. Powerful, performant & highly capable.
Thanks for the ideas, i'll check them out.
So, another question about something that I've got half-working...
<img src="http://i.imgur.com/5dlbA.jpg" border="0" />
Any idea where I'm going wrong?
The problem is the Pick nearest. I've added some debugging to your CAPX: bht.hostingsiteforfree.com/bugs/rgb_beams_test_DEBUG.capx
You are picking at the beginning of the line, not at the intersect point, so the "nearest" on your second node is actually the first node.
I don't have a solution for you, but this should help.
Edit: off the top of my head, I think you are picking backwards. Check each Node, and then figure out which beams overlap.
Yep it was a picking problem. Fixed it (learning a lot in the process) & thought i'd post the results so other Construct2 newcomers can have a look:
<img src="http://i.imgur.com/mxVEQ.jpg" border="0" />
somewhere in the forum someone add capx with laser reflect on mirror that might be useful to game