part12studios's Forum Posts

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

  • 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

  • awesome i'll give that a shot. thanks so much for the insight! functions have always been something i've tended to avoid (like arrays) but i'm glad to have something that forces me to use them and better understand.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • and advise on how i should structure that in a way that is "the same"? this is the group for this. especially the script inside the trigger event. it's making reference to a "Self.Text & newline & Function.Param(0)" but i'm not sure how to phrase "Function.Param(0)" in a way that the new function system works. This is a chat program example i'm drawing from:

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

    it has a capx example that i'm working through now to adapt into an existing project of mine.

  • ah ok cool, hopefully i can decipher the logic then since i'm deviating from the old system a little.. but i think i get the idea. much appreciated to know i'm not missing some glairing step to make it behave like that. you rock! :)