Text box invisible on snapshot

Get help using Construct 2

Post » Mon Jul 11, 2016 3:29 pm

Hi! I'm trying to make a "game" where i can type some information and make a snapshot/PNG file out if it, so i can print it. But everytime i use the command to make the snapshot, all the text box disappear. How do i fix this?
Sorry if i said something wrong, it's not my main language.

Edited: I'm adding a capx file.
https://drive.google.com/file/d/0BzWC9KLseKfkd2ZUZjhmcUZrV28/view?usp=sharing
Image
B
40
S
14
G
2
Posts: 132
Reputation: 3,523

Post » Mon Jul 11, 2016 6:00 pm

The snapshot action only captures the canvas. The textbox or other forum controls aren't drawn on the canvas, rather they float above it so can't be captured in the snapshot.

However if you want to print it you can use the browser object to run the javascript "print()" and the textbox will be included.
B
92
S
32
G
110
Posts: 5,298
Reputation: 71,507

Post » Mon Jul 11, 2016 11:25 pm

Try utilizing spritefont. Either have a system where the user can enter text into the spritefont directly (custom textbox) or create a spritefont with the textbox contents upon taking a snapshot.
Mistakes were made.
B
52
S
26
G
111
Posts: 1,628
Reputation: 62,677

Post » Tue Jul 12, 2016 3:35 pm

Thanks both of you for the replies! :)
R0J0hound, it worked like a charm! :D
Image
B
40
S
14
G
2
Posts: 132
Reputation: 3,523


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests