FEATURE REQUEST: Text Box Input

Get help using Construct 2

Post » Thu Apr 24, 2014 2:31 pm

@Ashley - Thanks for the response, I appreciate your reply.

My client wishes to have their custom font appear on an educational game, and they want their current 640x480 flash game upscaled to an 1080p HTML5 game but with strict instructions that the new game visually looks the same (but better). Unfortunately I can't achieve this with the current text box, as they currently have a transparent background to their textbox allowing them to show textures behind the text. I hate reinventing the wheel when the more efficient tool is so close to what I want it to do. One of the levels is based on a space background, so having a floating white box just looks out of place, which is the reason as to why I'm trying to combine it with the text object or sprite font.

I've never actually needed to make proper use of the Text Box in a game before, but they've agreed to a £3200 quote for one program, and a £720 quote for 1 of 6 other games and so I'm pretty keen to get the function in place.

Sorry for chasing so much! I know it's a pain, but I'm hoping there's an easier method. Would an opacity setting be possible? Am I correct in thinking a 0% opacity object is still rendered?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Post » Thu Apr 24, 2014 2:34 pm

Just use the "set CSS style" action. There is a CSS property for opacity. This is still a bad idea, because the UI will be all wrong: you will still be able to select text and move the cursor around, but there will be no visual indication. It would be better to use CSS to remove the background and set a web font.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Thu Apr 24, 2014 3:07 pm

Although you may be very much against this, Ashley :s setting the CSS to ensure that all colours are transparent, and the outline and border to none has given me exactly what I needed. The Educational game involves quickly typing out the answer to as many sums as possible, so the text box is always in focus and the mouse isn't used until the game ends.

Sure, it's not a very good game, but it pays the bills :) And you, hopefully! Not one of my own design, so I don't find myself concerned :)

Thanks for your help, and sorry for all the hassle!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Previous

Return to How do I....?

Who is online

Users browsing this forum: Matei511 and 69 guests