part12studios's Recent Forum Activity

  • Good to know. i'd hope if scirra is offering the option they'd make it fairly easy to configure. i've emailed them directly to find out more, but haven't heard back yet. i'll read up on this! thanks so much.

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

    https://www.construct.net/en/free-online-games/multiplayer-chat-room-3494/play

    this server is ran from

    wss://multiplayer.scirra.com

    I want to have one for my projects chat room that's obviously not this one. :)

    Thanks!

    Caleb

  • ooooo ok i found the issue. in a different group i had left another back key reference.. the approach mentioned by savvito123 did work perfectly! Man this is awesome. Thanks sooooo much. I think this is going to really work. I'll post my final thing once i iron out all of these conditions

  • Shift 2 key

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)

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

part12studios's avatar

part12studios

Early Adopter

Member since 24 Dec, 2012

Twitter
part12studios has 1 followers

Connect with part12studios

Trophy Case

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

20/44
How to earn trophies