The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

In Godot I'm trying to achieve the same effect shown in this coloring book app HERE each part of the image is a separate layer and when coloring, only that section is colored in. Any ideas are welcome. I have been trying for hours to figure out how to do it.

Godot version 3.4
in Engine by (64 points)

1 Answer

+1 vote
Best answer

I believe shaders are good way for this. Make image in Krita in layers and save each layer as separate image. Each image will be texture of Sprite, and each of those Sprites will have the same shader. Shader will colour only active element in chosen patter based on passed global_mouse position.

PS. What an assholish application in this link. They would even border colouring book palette for children to 6 colours.... what is this, Pay2Paint ?

by (8,188 points)
selected by

Completely missed seeing your response until now! Thank you for your answer. Wow and I also just noticed you answered back the same day.

Yeah, unfortunately a pretty restrictive little app for kids :(

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.