AnD4D's Forum Posts

  • 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?

  • Following on from: https://www.scirra.com/forum/viewtopic.php?t=102042

    Ashley - Can we at least have a opacity setting then, as I believe 0% opaque objects are still rendered and can therefore be focussed. At the moment, I can't see anyone using the TextBox for their professional game as you can't customize it at all. At least if you link it to a text object you can change the font and size. The ability to enter data is a big deal for my current game, and would prefer to use the great functionality provided by the TextBox... just not the way it looks.

    Unless of course, you know of an easier way to achieve my aim beyond Sargas suggestion?

    Your help would be appreciated, as it's a rather nicely paid job waiting here, requiring that I upgrade my license

  • Not sure why this isn't default from the start to be honest. The official plugin appears to be overly complicated, and this plugin was a massive help. It's probably a massive job to change it though, sadly.

  • Problem Description

    1) Even though I have an event that sets the text box as always in focus, if it's off screen or invisible it loses focus. This prevents users from writing into the text boxes and have that data transfer into a text object or sprite font object. I'm assuming that this isn't by design, because disabling it when invisible or off-screen has no uses, as far as I can tell.

    2) When I resize the textbox vertically down to a very small size (such as 1 or 0) the text is very small. When I increase the size again the size of the font doesn't increase again... in fact, I can't figure out how to set the size of the TextFont at all.

    Attach a Capx

    https://copy.com/A6hX2zycAA2Ry7EM

    Description of Capx

    This capx shows a text box which you can use to enter text. The text is then shown in a text object. Every tick the object is moved down 1 pixel so the user can see that as soon as it goes off screen you can no longer write anything. The same thing happens if you set it to invisible.

    Steps to Reproduce Bug

    • Link a text box to display its text to a text object.
    • Move the text box off screen or set it to invisible.
    • Preview the game and see that you can not write anything... but if it's on screen/visible, you can.

    Observed Result

    Can't write if TextBox is off-screen or invisible.

    Expected Result

    To be able to use a text box to type names, etc using the font object or sprite font object.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Win 7 SP1

    Construct 2 Version ID

    167.2

  • Do you have a capx?

  • Sargas - Very nice indeed. Thanks a lot! I'm still going to put this through as a feature request however, as although it may be this way by design, I do not see why whether an object is invisible or not should stop it from functioning.

    15 events for something that should already be built in reminds me of my early turret code

  • Sargas, Interesting. Not bad at all. The only thing I can think of is the fact that in order to get the shift and caps lock working, I'll have to set up a whole bunch of other functions. I'll definitely do this if the TextBox won't be updated, but the text box method would be a lot more straight forward... if it worked

  • Sorry Sargas, I can't see anything...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Can you upload it? How many variables are you using?

  • Why is it that I can only write into a text box when:

    A - It's on screen

    B - It's visible

    ?

    I have events in place that state it's always in focus. This is so I can write into the text box and the content will always be shown in a text object. Anyone know how to achieve this with these 'features' in place?

    *UPDATE*

    Upon doing further tests it seems that even setting the on-screen box to a vertical size of zero will not allow me to enter text, and also auto size must be switched on if the text box is too small.

    Therefore, Ashley, please may I request that text boxes can be focused even if they are invisible or off screen? At the moment I can't think of a way to allow people to write into Sprite.Font or normal font objects without text boxes.

    This (hopefully) minor feature is important for 2 of my current ongoing projects.

  • Ashley - Makes sense. Still, this was originally created 5 months ago. Did the developer really not let you know about it? It's such a small thing, but it improves the plugin massively.

    "If the change is very small, please just suggest it as an official feature. It can probably be added quickly in to the next beta release. This removes the need for a third party plugin at all."

    If it is indeed small, please can this be added as an official feature? I've never really gotten on with the official SpriteFont, but this one was great!

    Thanks for your hard work, Ashley!

  • Ashley - I notice that you haven't been tagged into this post at all, so I don't know if you're even aware of it. Might this be easy to introduce into an upcoming C2 release? I'm working on a text heavy game for the Wii U at the moment, and it'd be nice to see what my text would look like in the editor rather than only runtime.

  • Can this plugin be fixed, please? It's a lot better than the official plugin, purely because you can see how things look in the editor, and you don't have to worry about arrays/JSON.

    It's frustrating for me that Games Factory back in 1999 managed to get an easy to use Sprite Font, and here we are in 2014 and Construct 2 requires that you jump though hoops to get it to work. I very much doubt anyone could easily get to grips with the sprite font tool without a tutorial.

    Best yet, make this the official plugin!!! I don't see why that's so hard. The author seems more than pleased for that to happen.

  • Tom

    Please can this thread be locked? Really tired of these alerts, and the un-subscribe system doesn't work

  • Hi, I have the same problem, the touch screen does not help, I think is more with this type of export is not required in previous touch screen.

    I'm trying, even removing the loop on the music, but still not working ...

    If I find the solution informs you.

    omrpps

    Please use the new thread highlighted 2 posts above yours.

    https://www.scirra.com/forum/viewtopic.php?f=146&t=101139