part12studios's Forum Posts

  • yea a peer to peer chat would be fine. this is very causal.. i just thought it would be fun if anyone pops in devs could chat or potential fans might be able to chat as well.. i don't see a need for a permanent IRC style chat room that is persistent.. but the example i got working is this multiplayer example. how easy would it be to migrate the same logic to a peer to peer approach?

  • ok so its $20 to buy the software.. scirra is hosting the one channel.. could we purchase a separate channel? i have a website that's a kind of BBS simulation and I thought it would be fun to have a light chat room (just whoever happens to be on at any given time, nothing permanent) and i have it fully working using the tutorial, but it's pointing to that public one which as a bunch of weirdos on it who i don't understand.. you'd almost think they were bots, but they don't appear to be.. just weird internet people.. lol..

    but if wss://multiplayer.scirra.com is a thing

    could they have/sell a wss://mychannel.multiplayer.scirra.com?

    I know my chat room will be largely unused so there would be virtually no cpu consumption most of the time.

  • 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

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