15 puzzle - help change empty piece

In the 15 puzzle example how could i change the empty piece. Would like to change the color.

Thanks you for any advice in advance.

2 Likes

You could change the background color by sending a clear_color message the render component. Put the code in an init function.

This example would change the background to red:

msg.post("@render:", "clear_color", { color = vmath.vector4(255/255, 0/255, 0/255, 1) } )
3 Likes

Thank you, was going about it the wrong way. having slow learning curve, but will be well worth it, when i get my head wrapped around a few things

4 Likes