Teyo's Forum Posts

  • 2 posts
  • If you need to detect a color, after pasting it on the drawing canvas use "Save snapshot" action, then "Wait for previous action to complete". And after that you can get the color of any pixel using DrawingCanvas.SnapshotRedAt, DrawingCanvas.SnapshotGreenAt, DrawingCanvas.SnapshotBlueAt expressions.

    But it probably would be easier just to store color values in instance variables on the color palette sprites.

    Also check out this example:

    https://howtoconstructdemos.com/using-flood-fill-for-drawing-canvas-to-make-a-coloring-game/

    Yeah, thank you for your help!

    I have watched that video and it's great. I'm not a construct pro so I am confused that how this should be done in steps.

    Because the color should be detected before it was pasted to the "teeth canvas". And these sprites have the colors already in instance variables, so i wonder what could be the best option to copy the clicked color of the sprite to the canvas.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey!

    I'm working on a project to make a teeth chart where indivitual sides of the teeth can be painted according to the color chosen.

    My issue here is that its 99% done but I cant understand how could i make the canvas next to the small Sprites to show the chose color.

    Ask more info if needed!

    Thank you!

  • 2 posts