Paint game - Can I really do it with the C2?

Discussion and feedback on Construct 2

Post » Wed Nov 30, 2016 2:59 pm

Hi everybody

I know that it's possible to create a paint game in the C2 but I need to know if it is possible to do it with all these requirements:

- the drawings are outline images (probably rasterised vector images)
- fill the drawings with color including the background (it's not necessary the brush tool)
- at the end the player can print the drawing

I know I can use the canvas plugin for this but I don't if it attends all the requirements and if the final quality is good.

Thanks in advance for any help/demonstration/suggestion?
Last edited by RBuster on Wed Nov 30, 2016 6:48 pm, edited 2 times in total.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Wed Nov 30, 2016 3:14 pm

C2 is not developed to be a good painting tool, but...

You can by two ways:
A - Making a plugin;
B - Making your canvas be a mosaic filled with invisible tiles, whose in touch with a tool will trigger a sequence of events, like a pencil drawing around the point or a paint start painting everything until it reach other tiles with different color from the first one. Also, you can implement tolerance and other behavior, plus, improve the size of the tiles to be small as a pixel, but again, you can use other type of tool to make it easily, including opensource and freewares html5 tools.
Image
B
106
S
23
G
17
Posts: 1,355
Reputation: 22,123

Post » Wed Nov 30, 2016 5:36 pm

This is not very exciting. Any other opinion/suggestion/help?
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Wed Nov 30, 2016 5:37 pm

@gamecorpstudio surely knows something about this
Banned User
B
17
S
7
G
23
Posts: 388
Reputation: 13,994

Post » Wed Nov 30, 2016 5:51 pm

X3M wrote:@gamecorpstudio surely knows something about this


:) you are to kind.

@RBuster check my signature bundle there is a template there that might do what you want. or the drawing app directly

it using normal Sprites and vector images to fill in their inside empty spaces while still keeping the outlines, so you cant draw outside their box, its a simple painting version, but can be made in so many different ways. for snapshot you can use the system expression to take a picture of the current window, and while you do that you need to clear the objects overlapping then invoke download via browser object. there are plenty small tutorials on this, which if placed together you get a drawing app.

however its made long time ago when i barely knew C2, and has some performance issues, there are a few loops inside that kills performance at some point.
B
75
S
22
G
68
Posts: 1,331
Reputation: 43,259

Post » Wed Nov 30, 2016 6:38 pm

Thanks for the indication @X3M

Thanks for the reply @gamecorpstudio. I have checked the app. Very nice.

Is it possible to print the colourful drawing at the end?
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Wed Nov 30, 2016 8:03 pm

RBuster wrote:
Is it possible to print the colourful drawing at the end?


not in the curent app, but you can add that feature, by canvassnapshot system expression and then use the browser expression Invoke download "canvassnapshoturl" and before you call that you will need to clear the so called HUD so yea its possible
B
75
S
22
G
68
Posts: 1,331
Reputation: 43,259

Post » Thu Dec 01, 2016 11:21 am

To clear the HUD you can simple set the visibility off or set the opacity to 0%

https://www.scirra.com/tutorials/1207/h ... ing-canvas
Image
B
106
S
23
G
17
Posts: 1,355
Reputation: 22,123

Post » Thu Dec 01, 2016 2:45 pm

Thanks guys. But I really need more tips of how to print the drawing and I think I will have a situation here to solve: I need to print all the drawings in same page, like a tile. For example: If the player paint 20 drawing all this drawing should be distributed in the page (1 columns x 6 rows + 2 columns x 7 rows) when they print them. Can I do that?

Thanks in advance.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Thu Dec 01, 2016 4:45 pm

Is it possible to save 20 snapshots on disk, load them after into a tilemap and so get a snapshot from this and print or save as image?
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Next

Return to Construct 2 General

Who is online

Users browsing this forum: David181, Exabot [Bot], stephanej88 and 9 guests