part12studios's Recent Forum Activity

  • Shift 2 key

  • OK did manage to work out the shift thing. for anyone looking to do it.. this works:

    Normal 2 key

  • also I'm noticing that there doesn't seem to be a way to do symbols like say.. ~ or ! with the keyboard input mapping. i may try seeing if nesting might work like.. shift key pressed and then a sub key like "2" equals the "@" symbol..

  • Here's what i have currently. it's on backspace pressed.

  • for me i'm getting the same result. backspace wipes all

    left(ChatLogin.Text,len(ChatLogin.Text)-1)

  • oh that's cool, that did kinda work but in this case it clears the whole text field not just the last character..

    in my case the chatbox is called ChatLogin (this is the login screen, but a chat text box will come next)

    left(ChatLogin.Text,(len(Chatlogin.Text))-1)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a chat program i'm working on and to fully customize the look i'm making my own chat window and this requires each key to be mapped, this includes space and delete. the keys working to add characters is pretty straight forward, but i'm a bit stumped on how i would create a delete key to effectively remove the last character of the text string in the text box.

    I found an older C2 forum post that had some solution that was similar, but dealt with newline.. i feel like it's something like.. maybe the total character count - 1 would be right, but i can't figure out how to express it correctly.

    right(ChatLogin.text, len(ChatLogin.text)-find(ChatLog.text,newline)-1)

    this was my attempt to adapt the example to mine.. but can't figure it out.

    Thanks!

  • Ok yea i pretty much answered my own question at this point so i'm closing it out and starting a new one specifically asking about how to subtract

    For anyone who comes across this, TL;DR - if you want a custom text field to type into that is fully customizable, or at least a lot more than a generic text box object.. you make a text box with sprite font support and simply define each key as a separate event:

    what this is doing is basically added a new character to the ones already listed.

  • is there a way to subtract the last character from a text field? in other words, i want to have a working backspace.. so i imagine each time i hit backspace i'm refreshing the text minus one character removed from the end..

  • at this point i'm just manually defining each key stroke as a specific character.. lord this will be a lot of conditional crap.. lol.. but it does seem to be working for the most part.. just tedious..

  • I could see though maybe using a text field like i did for the other stuff but i have a slightly different issue, which is that the keyboard object doesn't really have a type feature I'm aware of.

    The only thing I could see is literally make 26 events that capture all 26 letters of the alphabet and then more for numbers.. maybe even getting into shift keys for characters.. so all that seems really unwieldy. maybe there's some feature i'm missing that could do this?

    It would just be really messy to keep updating things that way.. but i guess that's a way to do it. i'm imagining there's a much smarter way to do it.. heh :)

  • Hi everyone, so I'm stoked that I was able to get the chat room example out there to run on my website, however my website is meant to feel like an old BBS. I want to make a chat room, but it a few key things:

    1. the dos font i'm using throughout the website and scale it to insure it fits

    2. not have any borders, I will add my own ASCII art around it to create that illusion.

    3. have a solid black background in the text entry boxes

    I can't seem to find where i can control any of this. instead I have a vanilla white box with a fixed font and no way to even set the font size or color, etc.. Just need overall control of the various visual elements that make up the text boxes both reading boxes and text entry boxes (like entering user name, and

    Also regarding the chat server that exists.. where would i go to make my own independent server? what would be involved with that?

    "wss://multiplayer.scirra.com"

    this is where i'm at with it so far.. working on fleshing out the various sub categories.. very much a WIP.. part12studios.com/games/rd_bbs/rd_bbs_17

    Thanks,

    Caleb

part12studios's avatar

part12studios

Early Adopter

Member since 24 Dec, 2012

Twitter
part12studios has 1 followers

Connect with part12studios

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies