How do I add an image in a textbox ?

Get help using Construct 2

Post » Fri May 01, 2015 11:30 pm

Seems amazing. I'll give a try on my project, thank you very much. :)
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sat May 02, 2015 7:19 pm

Hi again :D
I modified your capx to put sprites on the letter "a".
I would like also the div to update each time I type something in the textarea.
Actually, I need to type twice (or more if you erase the text to write something) in the textarea in order to have the text on the left properly updated.

Any idea why ?

https://www.dropbox.com/s/hqf9zhhem5759 ... .capx?dl=1
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sun May 03, 2015 6:33 pm

Can't open the capx because I don't have the multiline box plugin.
B
74
S
31
G
25
Posts: 994
Reputation: 19,698

Post » Sun May 03, 2015 7:40 pm

Well, it works perfectly with a TextBox object, but noto with the multiline plugin… Maybe its "on text change" event doesn't work the same way. :|
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Mon May 04, 2015 1:34 pm

My javascript hack is intended to work with the text object only. The plugin you used certainly don't have the same implementation, and the script will simply crash.
Last edited by Magistross on Mon May 04, 2015 6:50 pm, edited 1 time in total.
B
74
S
31
G
25
Posts: 994
Reputation: 19,698

Post » Mon May 04, 2015 6:49 pm

I'll try to do this :
Multiline: on change -> set Text.text to Multiline.text
And then apply your events Text. Might work.

Thank you for your solution, by the way :)
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests