Make text Selectable

0 favourites
  • 15 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • How do I make text selectable when viewed in a browser.

    I want it so that when someone views my HTML5 exported project that they can copy text from the "game" and paste it wherever they want.

    Currently all text appears to be locked as if it were part of the background.

    I'm building a website using construct 2 so yeah... that will probably explain why I want the text to be selectable.

    any help would be really appreciated.



  • Also, I note that there is a text box objext that can be added which looks like text can be selected with it.. though

    I don't know if you can make the background transparent and get rid of the border.

    I'm also not sure if you can modify alignment and change font sizes for various lines of text etc..

    Perhaps someone has made a very basic text creation behaviour that will allow me to add text and basic html formatting to it.

  • I found a plugin that allows you to add in DIV tags but it does not scale properly AND the text is only selectable with Control + A

    I would like google to be able to crawl my website if possible so this isn't an ideal solution.

    Perhaps someone else has created a new plugin that goes under a different name then what all my search attempts thus far have uncovered.

  • Nevermind, I just saw another topic that directly asks for information about creating text for the sole purpose of creating a website and currently staff are turning a blind eye to this wide open arena that could be theirs for the taking with only minor improvements.

    Sad really, but that's life, we find something and focus on it and don't see the possibilities for expansion.

    I will continue on and find the best work around here that I can and will let you know what I get. (you being anyone that reads this).

    So far my plan is to use this Iframe plugin as I think it will let me embed a properly constructed html page inside of my construct site.. downside is that if it's an I-Frame, chances are the content in it won't be picked up by Google crawlers.

  • Jax, Hopefully this can be improved soon but the "staff" of Construct 2 is just two guys, and I'm not sure if both of them work on the programming side. They just released a new version of Construct 2 beta today so it's probably been a busy day for them, and if you're in their timezone it's pretty early in the morning <img src="smileys/smiley17.gif" border="0" align="middle" />

    Give them time, they want to make the best product they can, but they have to finish the game dev side first.

    Edit: Also, Construct 2 currently exports its HTML5 apps/games as an iframe entirely I believe, so you might be best to put the animated parts into separate iframes and have the text as raw html parts.

  • Jax

    It's just impossible to do with the actual text object since the text is directly drawn into the canvas. It's not simple html text.

    About your questions on textbox, look in the plugin part of the forum, I did a textbox addon which allows you to modify its style. (maybe C2 does it natively).

  • Thank you very much for these replies, I'm feeling quite positive about the use of this software for the purpose I have assigned to it and this comes from the responsiveness of the staff (which for only 2 people) is really impressive as well as the supportive community.

    Unfortunately I would not be able to build my website the way that you described it JayJay and this is due to it being one complete file. Once it is up running live, I am happy to post a link for those interested in viewing it to see.

    It's nothing too special but I think it's a good example of how a website can be built within construct.

    Luckily, there are many sites that already list businesses online through google so all we need to really do is post links to our site on these profiles that exist and it will direct traffic our way. As this area of the software is further developed, things can only get better.

  • Jax, Ah, I think you might be able to show plain text to search bots and the HTML5 page to people now that I think about it.

    I did a quick look and one way of doing it is to put the plain text into a div with set height/width/and overflow:hidden in the style so it doesn't show up for the human user. Maybe that can help?

    Edit: and sure, we'd love to see your site <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I think that the hidden text attracts negative points from google, but at least google would be finding the website so that can't be the worst outcome ;)

    website is linked Below

  • If you want copyable text you need to use a text box, but I would not suggest using Construct 2 for making a website as things like searching, forums, accounts, etc. can't be used.

  • There are a lot of website models that do not fit well with the Construct 2 abilities currently being offered. In the future, this will likely change as they recognise the untapped market and ability to offer current users more features that are commensurate with the generation of websites.

  • Ashley has stated a few times that Construct 2 is for making games and not websites. So I'm guessing this also means that things for website development won't be added/changed. I'm not saying it can't be done with Construct, but there are definitely quite a few things you'll miss out on by using it.

  • Yes, their decision to avoid supporting a more broad usage of the core software elements and functionality will likely baffle me for a long time to come but that is evidently their current standing point.

    Even with these limitations, my goal is to find a way to include enough text to the site I have created so a google search for that business type in my local area will come up.. or at the very least a word for word of the business name

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not that they are avoiding it. Scirra is only 2 people and if they were to start making it for for web development, that would mean they would have to stop working on the game development part (Which is what Construct 2 is, a game engine) They pretty much had a choice to make it a web development program, or a game development program and they chose game development.

  • I'm not sure that we are on the same page there as the improvements I mention would allow for a game developer to include better interactivity on projects embedded into websites *the DIVs that overlay with a transparent background for text*

    The alignment and distribution tools would be an invaluable tool for speeding up workflow in the development of game GUI's and level content.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)