Help me in simple chat

0 favourites
  • 11 posts
From the Asset Store
Chat with smart animals using the OpenAi Chat GPT 3 API
  • I want to make very simple chat follows this principle:

    1. Break chat message into many string.

    2. Each len(string) <= 20.

    3. Move all existed text objects up 16 pixels

    4. Create text object at bottom

    5. Set text for new text object = string

    Here is my event sheet

    <img src="https://www.dropbox.com/s/qwrtljj01agsb3t/Sheet.png" border="0">

    My capx herehttps://www.dropbox.com/s/nxxw3fdi2sxur4t/chatTest.capx

    But it doesn't work

    Help me urgent please..??

    Thank in advance

  • Hi hoanganh17 - something like this should work for you:

    ChatTest (web preview)

    ChatTest (capx R128.2)

    If there's a word in the chat that's longer than 20 characters, it is put on a single line. You may need to adjust that depending on your purposes.

    Hope it helps!

  • rogueNoodle

    Thank you very much. Your demo works perfect.

    But problem here is I can't open your capx. I get error message as image bellows. Could you please give me a capx in stable version...???

    <img src="https://www.dropbox.com/s/r67nsj409mzsppu/Err.png" border="0" />

    Thank in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    ACE table: adding parameter after calling ACETable::Done()

    Condition: !finished

    File: c:\c2\source\exporters\html5\..\..\common\ERAHelpers.h

    Line: 337

    Function: void __thiscall era::ACETable::AddParam(enum era::ParamType,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,int)

    Build: release 128.2 (32-bit) checked

    Component: HTML5 exporter

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

  • hoanganh17 - Unfortunately there's not much I can do as it's not possible to save a .capx file to an older version. Here's a screenshot of the events though, if that helps:

    <img src="http://roguenoodle.com/forum-images/chattest-events.png" border="0" />

    One thing that you can't see from the event is that there is a "destroy outside layout" behaviour on the text objects...

  • its possible to chat with someone?

  • delgado: Yep, if you put websocket in background of plugin or uses chat plugin of someone ..:)

  • hoanganh17 its easy to make this?

  • A quite easy, you can search websocket plugin in this forum and find out how to do...

  • rogueNoodle

    One more time I would like to say thank you.

    It's working fine...:)

  • hoanganh17 - That's great to hear :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)