Make chatbox appear to fade

Get help using Construct 2

Post » Wed Feb 26, 2014 3:04 pm

I know it isn't possible to make a textbox fade out. I'm wondering if anyone has a different solution.
B
34
S
10
G
5
Posts: 165
Reputation: 6,697

Post » Wed Feb 26, 2014 3:25 pm

You could create a textbox clone using 9patch and text/spritefont. This would be classical C2 objects that would support fading in/out. It requires some events to make them behave like a textbox does, but it should solve your problem
B
17
S
8
G
4
Posts: 473
Reputation: 6,211

Post » Wed Feb 26, 2014 3:33 pm

I'd need some of the features that a textbox gives such as selecting text, scrolling.
B
34
S
10
G
5
Posts: 165
Reputation: 6,697

Post » Wed Feb 26, 2014 3:39 pm

Hum... so a clone wouldn't work then...
Is your textbox in front of a static background ? Could you maybe put a sprite in front of the textbox and make it fade in ?

Or just use an HTML id and make it fade out using CSS opacity directly ? (as the textbox is a native html form element)
B
17
S
8
G
4
Posts: 473
Reputation: 6,211

Post » Wed Feb 26, 2014 3:52 pm

You can set the CSS of it yes, and it does respond. The next part is having it actually fade in/out. This would be great as a behavior.
B
34
S
10
G
5
Posts: 165
Reputation: 6,697

Post » Wed Feb 26, 2014 4:33 pm

This would in fact be great if the current "Fade" behavior worked on the textbox as it does on everything else. I tried to do a simple capx to explain how I would do it, but the most efficient way to do it would be to call custom javascript on the hosting page, that would handle the change in CSS (as I don't see how to pick an object by its DOM ID in C2)
B
17
S
8
G
4
Posts: 473
Reputation: 6,211

Post » Wed Feb 26, 2014 4:37 pm

I'm currently using Node Webkit. Newt posted a decent example here:
viewtopic.php?f=160&t=97318
B
34
S
10
G
5
Posts: 165
Reputation: 6,697

Post » Wed Feb 26, 2014 4:38 pm

Yep, just saw it in the help needed section. Nice work from Newt :)
B
17
S
8
G
4
Posts: 473
Reputation: 6,211


Return to How do I....?

Who is online

Users browsing this forum: vino7733 and 30 guests