part12studios's Forum Posts

  • I am rolling my own keyboard for a chat window and i've got all the characters worked out, but i'm stuck on the use of Shift+' to make a ".. because of course a """ doesn't fly with construct.. and i'm sure it's something html5-ish

    I did some googling and i read something like using a \ in front of the quote but that's not working for me.

  • yea that's true.. i learned quite a bit doing this but yea that would have been helpful. I wasn't convinced it would do what i wanted. functions had me worried as well as the function example was different but awesome feedback gave me the help needed to see how to properly adapt it. This example also was well document so it was a good learning experience reading the comments.

  • ooooo there i see it now.. there is name variable.. so cool.. that's perfect! thanks!

  • so you're saying i could point to this server and make my own "channel"? how would that work? as far as I can see i'm pointing to wss://multiplayer.scirra.com and that's it.. is there a way to create or tap into maybe sub channels?

  • Try Construct 3

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

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