#How to implement drawing minigame

1 messages · Page 1 of 1 (latest)

normal crescent
#

I want to have a target shape/image that the player has to try and draw, sort of like the Eatsa Pizza Mario Party minigame.

I've seen the general concept of using some combination of click events + the _draw() or line2d to let you draw on screen with a mouse, but I'm not sure how to access or compare the data of whatever is drawn on screen.

If someone could point me to what classes I could use/look through, that'd be appreciated.

worldly charm
#

You should store the points. And once per frame, use Texture.get_image() to get the actual image, which you can set pixels on and update with your new points.
Once that is done, clear your points until next time.

Make sure to use get_image() sparingly because accessing the image inside a Texture is pretty costly.